Skip to content

Commit 0db7fb3

Browse files
committed
Document chunked() and windowed()
1 parent 5cf0a1f commit 0db7fb3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Data sequences change log
33

44
## ?.?.? / ????-??-??
55

6+
* Merged PR #57: Retrieve collection parts - @thekid
67
* Merged PR #55: Migrate test suite - @thekid
78

89
## 10.1.0 / 2022-08-28

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ The following operations return a new `Sequence` instance on which more intermed
101101
* **distinct** - Returns a new sequence which only consists of unique elements. Uniqueness is calculated using the `util.Objects::hashOf()` method by default (*but can be passed another function*).
102102
* **zip** - Combines values from this sequence with a given enumerable value, optionally using a given transformation function.
103103
* **sorted** - Returns a sorted collection. Can be invoked with a comparator function, a `util.Comparator` instance or the sort flags from PHP's sort() function (e.g. `SORT_NUMERIC | SORT_DESC`).
104+
* **chunked** - Returns a chunked stream with chunks not exceeding the given size. The last chunk may have a smaller size.
105+
* **windowed** - Returns a sliding window stream - a list of element ranges that you would see if you were looking at the collection through a sliding window of the given size.
104106

105107
Terminal operations
106108
-------------------

0 commit comments

Comments
 (0)