The filterNot() method belongs to the concrete value members of the class AbstractIterator. It is defined in the classes Iterator and IterableOnceOps. It selects all the elements of the stated iterator which do not satisfies the given predicate.
Method Definition : def filterNot(p: (A) => Boolean): Iterator[A]
Return Type : It returns a new iterator containing all the elements of the stated iterator that do not satisfies the given predicate p.