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.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for functionalstream-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32cdc5f501439157b8749cb1f4899cbdb0013055300751acd6f6f1449b0112fc |
|
MD5 | b49b478aaf1cfc942bce7da9b9ae842e |
|
BLAKE2b-256 | d7d70a575968a2fc9bf4edb3c5dc64b8f8980b531961a8b0a8c1dc0551cd25ac |