Skip to main content

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


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)

Uploaded Source

Built Distribution

lazytoolz-0.1.6-py3-none-any.whl (4.7 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