JavaScript flavor iterable
Project description
jsiter
Make your Python iterable JavaScript flavor, and makes it more readable
Before
from functools import reduce
a = [1,3,5,7,9,100]
reduce(lambda a,b:a+b,map(lambda x:chr(x),sorted(filter(lambda x:x<=90,map(lambda x:x+65,a)),key=lambda x:-x)))
# 'JHFDB'
After
from jsiter import jsiter
a = jsiter([1,3,5,7,9,100])
a.map(lambda x:x+65).filter(lambda x:x<=90).sorted(key=lambda x:-x).map(lambda x:chr(x)).reduce(lambda a,b:a+b)
# 'JHFDB'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsiter-0.0.2.tar.gz
(1.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsiter-0.0.2.tar.gz.
File metadata
- Download URL: jsiter-0.0.2.tar.gz
- Upload date:
- Size: 1.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c861d832a479c0778add1d9dc7d2b4dde27fdf89b7f04e94a3bad0fccd2068
|
|
| MD5 |
84771df8ddd3ce993808c7f251e921f0
|
|
| BLAKE2b-256 |
6dc6307023e22240ba24c48d1af0b75ba275320c6589b2c6ad091e49a9f13815
|
File details
Details for the file jsiter-0.0.2-py3-none-any.whl.
File metadata
- Download URL: jsiter-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4376323e011bd6cb7c7ccbaaa6a1abf123387f73a7dba6a7615fbadfd7081a
|
|
| MD5 |
bf25f5c8f894d49213dcf7a9f20afd9e
|
|
| BLAKE2b-256 |
a05dab972bdc1a0560aac01d4a71fb23c92ffdce71972398e52fcf3cba412060
|