Returns an iterator which will group the elements according to
the supplied function and wrap each group in a traversable
implementation from the supplied factory.
public groupedIterator ( Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory ) : Pinq\Iterators\IWrapperIterator | ||
$iterator | Traversable | |
$groupKeyFunction | callable | |
$traversableFactory | callable | |
return | Pinq\Iterators\IWrapperIterator |