rust like iterators for python
Project description
Better iterators for python (all typed)
Examples
simple
## create iterator for even integers squared
even_integers = Iter[int](range(100)) \
.filter(lambda x: x % 2 == 0) \
.map(lambda x: x ** 2)
## to evaluate into a list use
my_list = even_integers.to_list()
## The smart list will allow the usage of iterator notation again by
times2_iter = my_list.iter() \
.map(lambda x: x * 2)
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
rustlite-0.1.5.tar.gz
(2.5 kB
view details)
File details
Details for the file rustlite-0.1.5.tar.gz.
File metadata
- Download URL: rustlite-0.1.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9b6f95502f69bb5d9495c30354e66057f33b0864fb12be95591a107c83974f
|
|
| MD5 |
f6eb668da6330fe8fa07fccd0182e818
|
|
| BLAKE2b-256 |
fde8909a1a9f39f0945bb044a16b9bba8fbfa7984881c344be522d2a26ba3bfd
|