From 5c7fbd290a7839af278d541e5ac3558dfedde5f2 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Fri, 20 Dec 2024 13:05:56 +0100 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index bc5e475..40b9a2c 100644 --- a/README.md +++ b/README.md @@ -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