Skip to content

Commit e65e67e

Browse files
authored
Merge pull request #16 from worksolutions/readme-fix
Reorganizers::collapse(). Description correction.
2 parents 9cd63a9 + 1178830 commit e65e67e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ CollectionFactory::generate(3, static function (int $i): array {
23652365
return [$i*2, $i*2 + 1];
23662366
}) // [[0, 1], [2, 3], [4, 5]]
23672367
->stream()
2368-
->reorganize(Reorganizers::chunk(2))
2368+
->reorganize(Reorganizers::collapse())
23692369
->getCollection()
23702370
->toArray() // for example [0, 1, 2, 3, 4, 5]
23712371
;

doc/README.ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ CollectionFactory::generate(3, static function (int $i): array {
23602360
return [$i*2, $i*2 + 1];
23612361
}) // [[0, 1], [2, 3], [4, 5]]
23622362
->stream()
2363-
->reorganize(Reorganizers::chunk(2))
2363+
->reorganize(Reorganizers::collapse())
23642364
->getCollection()
23652365
->toArray() // for example [0, 1, 2, 3, 4, 5]
23662366
;

0 commit comments

Comments
 (0)