Skip to main content

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


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

Uploaded Source

Built Distribution

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

jsiter-1.0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for jsiter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c630c1ce43dd2112ff958168a553dd1ff973e166d47b3d78f0aa807cdee6a0a4
MD5 64090fcb2ef356bece2639ca752a96cb
BLAKE2b-256 6157c41e43c40c1b763e9b2a3f9ba0fd2a36a396eac71094a1ef3c82acb813b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsiter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0af979dd43452498928f0a0a7d15fb0b6b5bf67791e5aa94a91245c2268fb962
MD5 029e1f31b05cb82da8f88fe8e54f6bd0
BLAKE2b-256 f91368a4cad34aed365239552a04dd21cfbe6beec63a7a08fa56a3aa41c2a739

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