We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chunked($n)
windowed($n, $n, true)
1 parent fef838a commit b02c99aCopy full SHA for b02c99a
src/main/php/util/data/Sequence.class.php
@@ -647,6 +647,9 @@ public function sorted($comparator= null) {
647
* Returns a chunked stream with chunks not exceeding the given size.
648
* The last chunk may have a smaller size.
649
*
650
+ * Calling `chunked($n)` is the same as `windowed($n, $n, true)` but
651
+ * uses a much simpler algorithm internally.
652
+ *
653
* @param int $size
654
* @return self
655
* @throws lang.IllegalArgumentException
0 commit comments