Skip to main content

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


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.6.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsiter-0.0.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file jsiter-0.0.6.tar.gz.

File metadata

  • Download URL: jsiter-0.0.6.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

Hashes for jsiter-0.0.6.tar.gz
Algorithm Hash digest
SHA256 278d491c6faa91a467898b5bfd475a19ecb0582655553d8329f2da3cd8f9fe4e
MD5 88f7a449bcf839c992492fe998a6e90b
BLAKE2b-256 695be6e1d076fcdc630e69aebe8224b2358ae7c9d2c75d759d99aa68cf6fb4b9

See more details on using hashes here.

File details

Details for the file jsiter-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: jsiter-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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

Hashes for jsiter-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 57abf12fe5ae4b6a87681ec61fa59eba39981a31c0fe34afb5e9ba629172763c
MD5 4dc937a23d683dc61e1bccc5470243c6
BLAKE2b-256 1a5c8c417f4ee1d186e3d26ee6e68e30c0fe2e9cc913d56129ef26e94a04cac0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page