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

groupJoinIterator() 공개 메소드

Returns an iterator which will return the outer elements joined to the inner elements. All matched inner elements for each outer element will be wrapped in a traversable implementation from the supplied factory.
public groupJoinIterator ( Traversable $outerIterator, Traversable $innerIterator, callable $traversableFactory ) : Pinq\Iterators\IJoinIterator
$outerIterator Traversable
$innerIterator Traversable
$traversableFactory callable
리턴 Pinq\Iterators\IJoinIterator
    public function groupJoinIterator(\Traversable $outerIterator, \Traversable $innerIterator, callable $traversableFactory);

Usage Example

예제 #1
0
 public function groupJoin($values)
 {
     return new Connectors\JoiningTraversable($this->scheme, $this->scheme->groupJoinIterator($this->elements, $this->scheme->toIterator($values), $this->scopedSelfFactory()), $this->scopedSelfFactory());
 }