Pinq\Iterators\IIteratorScheme::uniqueKeyIterator PHP Méthode

uniqueKeyIterator() public méthode

Returns an iterator which will return only the first associated value for any key.
public uniqueKeyIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator
$iterator Traversable
Résultat Pinq\Iterators\IWrapperIterator
    public function uniqueKeyIterator(\Traversable $iterator);

Usage Example

Exemple #1
0
 public function indexBy(callable $function)
 {
     return $this->constructScopedSelf($this->scheme->uniqueKeyIterator($this->scheme->projectionIterator($this->elements, $function, null)));
 }