Skip to content

Commit

Permalink
1.4.0: add .skip/.distinct/.groupby
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Dec 21, 2024
1 parent 2030d01 commit a3ae25c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
pip install streamable
```

> [!TIP]
> To install the latest release candidate: `pip install streamable==1.4.0-rc4`

## 2. import
```python
from streamable import Stream
Expand Down Expand Up @@ -285,9 +281,6 @@ assert list(integers_by_parity_by_2) == [[0, 2], [1, 3], [4, 6], [5, 7], [8], [9

### `.groupby`

> [!NOTE]
> Available in the 1.4.0 release candidate: `pip install streamable==1.4.0-rc4`
> Like `.group`, but groups into `(key, elements)` tuples:
```python
integers_by_parity: Stream[Tuple[str, List[int]]] = (
Expand Down Expand Up @@ -386,9 +379,6 @@ assert list(five_first_integers) == [0, 1, 2, 3, 4]

## `.skip`

> [!NOTE]
> Available in the 1.4.0 release candidate: `pip install streamable==1.4.0-rc4`
> Skips the first specified number of elements:
```python
Expand All @@ -398,8 +388,6 @@ assert list(integers_after_five) == [5, 6, 7, 8, 9]
```

## `.distinct`
> [!NOTE]
> Available in the 1.4.0 release candidate: `pip install streamable==1.4.0-rc4`

> Removes duplicates:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# to show the CHANGELOG: git log -- version.py
__version__ = "1.4.0-rc4"
__version__ = "1.4.0"

0 comments on commit a3ae25c

Please sign in to comment.