-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
groupBy will stop the chaining.
$numbers = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
$result = __::chain($numbers)->select(function($n) { return $n < 5; })
->reject(function($n) { return $n === 3; })
->groupBy(function($n) { return $n % 2; })
->sortBy(function($n) { return -$n; })
->value();
no result
Metadata
Metadata
Assignees
Labels
No labels