Close the underlying data source.
Close the underlying data source. The behaviour of any methods of this object after closing it is undefined.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Return a new CloseableIterator which also closes the supplied Closeable object when itself gets closed.
(closeableIterator: MonadOps[T]).filter(p)
(closeableIterator: MonadOps[T]).flatMap(f)
(closeableIterator: MonadOps[T]).map(f)
(closeableIterator: MonadOps[T]).withFilter(p)
An Iterator with a
close
method to close the underlying data source. Implementers must close the data source whenhasNext
returnsfalse
.