Skip to main content

Iterator chaining for Python

Project description

Iterchain: Iterator chaining for Python

Iterchain is a library intended to make manipulating iterators in Python easier and more ergonomic. The functionality is based on the standard Python itertools, and the Rust iterator design.

Examples

Standard python:

>>> list(map(lambda x: x**2, [1, 2, 3]))
[1, 4, 9]

With iterchain:

>>> import iterchain
>>> iterchain([1, 2, 3]).map(lambda x: x**2).to_list()
[1, 4, 9]

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

iterchain-0.1.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

iterchain-0.1.2-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

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