/** * Returns a fluent iterator returning elements of this fluent iterator that satisfy a predicate. * @param $predicate * @return $this */ public function filter($predicate) { $this->iterator = Iterators::filter($this->iterator, $predicate); return $this; }