uniqueKeyIterator() public method

Returns an iterator which will return only the first associated value for any key.
public uniqueKeyIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator
$iterator Traversable
return Pinq\Iterators\IWrapperIterator
Exemplo n.º 1
0
 public function indexBy(callable $function)
 {
     return $this->constructScopedSelf($this->scheme->uniqueKeyIterator($this->scheme->projectionIterator($this->elements, $function, null)));
 }