(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.
True if head() and hasNext() will return an item, false otherwise.
True if head() and hasNext() will return an item, false otherwise.
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
Consumes the next item from the iterator.
Consumes the next item from the iterator.
Returns an iterator over contiguous elements that match the predicate.
Returns an iterator over contiguous elements that match the predicate.
(betterBufferedIterator: MonadOps[A]).filter(p)
(betterBufferedIterator: MonadOps[A]).flatMap(f)
(betterBufferedIterator: MonadOps[A]).map(f)
(betterBufferedIterator: MonadOps[A]).withFilter(p)
A better buffered iterator that provides implementations of takeWhile and dropWhile that don't discard extra values.