Skip to content

Commit b02c99a

Browse files
committed
Add note on chunked($n) being the same as windowed($n, $n, true)
1 parent fef838a commit b02c99a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/php/util/data/Sequence.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ public function sorted($comparator= null) {
647647
* Returns a chunked stream with chunks not exceeding the given size.
648648
* The last chunk may have a smaller size.
649649
*
650+
* Calling `chunked($n)` is the same as `windowed($n, $n, true)` but
651+
* uses a much simpler algorithm internally.
652+
*
650653
* @param int $size
651654
* @return self
652655
* @throws lang.IllegalArgumentException

0 commit comments

Comments
 (0)