semvec/pypi-packages huggingface dataset:
ziper 0.1.5
Rust-like iterator for Python
License: Apache-2.0
Requires Python: >=3.7,<4.0

# ziper

Rust-like iterator for Python


## Install

```sh
pip install ziper
```

## Usage

```py
from ziper import Iter

xs = ['1', '2', 'a', '3', '4', 'b', 'c']
ys = [6, 7, 8, 9]

evens: list = (
    Iter(xs)
    .filter(lambda x: x.isdecimal())
    .map(int)
    .chain(ys)
    .filter(lambda x: x % 2 == 0)
    .collect(list)
)
assert evens == [2, 4, 6, 8]
```