(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
(closeableIter: MonadOps[A]).filter(p)
(closeableIter: MonadOps[A]).flatMap(f)
(closeableIter: MonadOps[A]).map(f)
(closeableIter: MonadOps[A]).withFilter(p)
a closeable iterator. has method
close: Unit, along with the standardIteratormethods, so that enumerator can be closed early when the iteratee is complete.