Tools for lazy programming in Python
Project description
Lazy programming for Python
pip install lazytools
This package adds lazily evaluated immutable objects.
from lazytoolz import LazyList
myList = LazyList([1, 2, 3])
myNumbers = LazyList(4, 5, 6)
myRange = LazyList(range(7, 1000000))
allNumbers = myList + myNumbers + myRange
print(allNumbers.drop(2).map(lambda x: x ** 2).filter(lambda x: x % 3 == 0).take(10))
LazyList(9, 36, 81, 144, 225, 324, 441, 576, 729, 900)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lazytoolz-0.1.6.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for lazytoolz-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852b4de12f0539aa95e37c42d0ef353787f3f769797fadd96e740ae5a44b6966 |
|
MD5 | d1b2663f8e3d91cec18847a3ed02c653 |
|
BLAKE2b-256 | c68e7ed27fdb808ec4494a5b66bc53257febe5823d4758b46105717e2848f39d |