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

intersectionIterator() 공개 메소드

Returns an iterator which will return unique values present in the first and second iterator.
public intersectionIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator
$iterator Traversable
$otherIterator Traversable
리턴 Pinq\Iterators\IWrapperIterator
    public function intersectionIterator(\Traversable $iterator, \Traversable $otherIterator);

Usage Example

예제 #1
0
 public function intersect($values)
 {
     return $this->constructScopedSelf($this->scheme->intersectionIterator($this->elements, $this->scheme->toIterator($values)));
 }