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

projectionIterator() public méthode

public projectionIterator ( Traversable $iterator, callable $keyProjectionFunction = null, callable $valueProjectionFunction = null )
$iterator Traversable
$keyProjectionFunction callable
$valueProjectionFunction callable
    public function projectionIterator(\Traversable $iterator, callable $keyProjectionFunction = null, callable $valueProjectionFunction = null)
    {
        return new ProjectionIterator($this->adapter($iterator), $keyProjectionFunction, $valueProjectionFunction);
    }