Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff authored Dec 20, 2024
1 parent b9e1eee commit 5c7fbd2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ uv add iterpy
```

## Usage
```python
from iterpy import Arr

result = (Arr([1, 2])
.filter(lambda x: x % 2 == 0)
.map(lambda x: x * 2)
)
assert result == [4]
```


```python
from iterpy import Iter
Expand Down

0 comments on commit 5c7fbd2

Please sign in to comment.