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.3.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.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsiter-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d479d2e65a45b27dba1c0091e6ad7e815e4bc1012615479e22037db45c9412ed
MD5 a61c820d1bdd41e1f9fe425be654ee91
BLAKE2b-256 13ce641203d9fedd8befe94087d1ac22c782cb6c8a75bba563167974b3645bbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsiter-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92ae870f2f894f0cd38e3f4b7eaa9385cd032712200499b34cb5623f09124bc4
MD5 bb6681b5174de3cac9480bd116ad38d6
BLAKE2b-256 04558b38c24d309595487a571316da21dd4be7fe5abad7011c362125fd710584

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