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.5.tar.gz
(1.8 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.5.tar.gz.
File metadata
- Download URL: jsiter-0.0.5.tar.gz
- Upload date:
- Size: 1.8 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 |
edea46966bd656f4a4a3aaccbc451b471ad72a452a4ed61502e250d465501749
|
|
| MD5 |
ebda0eef11bdfe340cbc8b0519d5cf6e
|
|
| BLAKE2b-256 |
6978e782ba4bc3998a36d13dd0eacfae46c338616c8dc3b876f916f94b3bbd44
|
File details
Details for the file jsiter-0.0.5-py3-none-any.whl.
File metadata
- Download URL: jsiter-0.0.5-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 |
f4b19f32b1f434280d6b9b7d1a55ba66e9ba60c79cd82da2fc351b6bd8b7539e
|
|
| MD5 |
9c4a1dac2676cfc99c5b4ea842e19b27
|
|
| BLAKE2b-256 |
ff29f40d96e496e62dd8d39436dc8f91d03558bebd48b4c1f999cff600c971c4
|