A functional interface for python iterator
Project description
functionalstream
Installation
pip install functionalstream
Example
from functionalstream import Stream
# stream = [0, 6, 12, 18, 24]
stream = Stream(range(10)).filter(lambda x: x % 2 == 0).map(lambda x: x * 3).to_list()
# stream = [(1, 2), (3, 4)]
stream = Stream([(1,2), (3,4), (6,5)]).filter(lambda x, y: x < y, star=True).to_list()
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
functionalstream-0.1.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for functionalstream-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074842ec0f6dda99cb0b8a7c40e4fad7317030167cd8b0eaaffe314506a3f030 |
|
MD5 | eb50e6ed88af9f9d41443c03378a63d8 |
|
BLAKE2b-256 | c0a467ef1f5447c5d23ac79d22b178adb5789a72ef7b553585093183557b1f2c |