JavaScript flavor iterable
Project description
jsiter
JavaScript flavor iterable for python.
install
pip install jsiter
# or
pip3 install jsiter
# depends on your OS
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-1.0.4.tar.gz
(1.9 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-1.0.4.tar.gz.
File metadata
- Download URL: jsiter-1.0.4.tar.gz
- Upload date:
- Size: 1.9 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 |
22c1b6ff3b4c833a17da3ddc7f5bbd104574595d933196d9e65ad5b51726cffc
|
|
| MD5 |
f5fe978d336012c556425ef7f8cda851
|
|
| BLAKE2b-256 |
59a03982ec5cdb0268bb0166e4fb739eeeaca3149cca7284cce11ec8fb839bbf
|
File details
Details for the file jsiter-1.0.4-py3-none-any.whl.
File metadata
- Download URL: jsiter-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
1ebd7b02b9f99e1af265381508226cc93af9b794a76b329159428e064c0afb4a
|
|
| MD5 |
fece0d0f138838adc2d0a05fa3522555
|
|
| BLAKE2b-256 |
51253516f8c7755f5de86ef2cfabfa6e5bb6c5f7286764bfecd446ca55ee4576
|