Pinq\Iterators\IIteratorScheme::flattenedIterator PHP 메소드

flattenedIterator() 공개 메소드

Returns an iterator which will iterate each element of the inner iterator's values. An exception will be thrown if an invalid iterator is returned from the supplied iterator.
public flattenedIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator
$iterator Traversable
리턴 Pinq\Iterators\IWrapperIterator
    public function flattenedIterator(\Traversable $iterator);

Usage Example

예제 #1
0
 public function selectMany(callable $function)
 {
     $projectionIterator = $this->scheme->projectionIterator($this->elements, null, $function);
     return $this->constructScopedSelf($this->scheme->flattenedIterator($projectionIterator));
 }