Pinq\Iterators\Generators\GeneratorScheme::groupedIterator PHP Méthode

groupedIterator() public méthode

public groupedIterator ( Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory )
$iterator Traversable
$groupKeyFunction callable
$traversableFactory callable
    public function groupedIterator(\Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory)
    {
        return new GroupedIterator($this->adapter($iterator), $groupKeyFunction, $traversableFactory);
    }