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)
Built Distribution
iterchain-0.1.2-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for iterchain-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59c19efa6a17af3b5feb341a3f49c30b512c5cab75b324cfd46e7cfe12f9123 |
|
MD5 | cfe25e82a3d055a94ea8daa623c14830 |
|
BLAKE2b-256 | d4fb2716f87a6fa6430aa218c835a411360221a11d8ceef2de0d9183eb227a77 |