Returns an iterator which will filter the elements according to
the supplied predicate function.
public filterIterator ( Traversable $iterator, callable $predicate ) : Pinq\Iterators\IWrapperIterator | ||
$iterator | Traversable | |
$predicate | callable | |
return | Pinq\Iterators\IWrapperIterator |
public function where(callable $predicate) { return $this->constructScopedSelf($this->scheme->filterIterator($this->elements, $predicate)); }