Skip to content

groupBy will stop the chaining. #29

@r569594043

Description

@r569594043

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions