Invokes the closer function provided in the constructor.
Invokes the closer function provided in the constructor.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Drops items while they match the predicate.
Drops items while they match the predicate.
Overridden to ensure close() is called if hasNext is false.
Overridden to ensure close() is called if hasNext is false.
Returns the next item in the iterator without consuming it.
Returns the next item in the iterator without consuming it.
Returns an option of the next element of an iterator without advancing beyond it.
Returns an option of the next element of an iterator without advancing beyond it.
the next element of this iterator if it has a next element
None
if it does not
Implements next() such that if there are no more items after the next has been retrieved then the close() method is invoked.
Implements next() such that if there are no more items after the next has been retrieved then the close() method is invoked.
Returns an iterator over contiguous elements that match the predicate.
Returns an iterator over contiguous elements that match the predicate.
(selfClosingIterator: MonadOps[A]).filter(p)
(selfClosingIterator: MonadOps[A]).flatMap(f)
(selfClosingIterator: MonadOps[A]).map(f)
(selfClosingIterator: MonadOps[A]).withFilter(p)
An Iterator that implements Closeable and auto-closes when it hits the end of the underlying iterator.