IteratorExtensions

better.files.Implicits.IteratorExtensions
implicit class IteratorExtensions[A](it: Iterator[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def nonClosing(closeInTheEnd: Boolean): Iterator[A]

Returns a non closing version of this iterator This means partial operations like find() and drop() will NOT close the iterator This was the behaviour prior to v4.0.0 - see: https://github.com/pathikrit/better-files/pull/587

Returns a non closing version of this iterator This means partial operations like find() and drop() will NOT close the iterator This was the behaviour prior to v4.0.0 - see: https://github.com/pathikrit/better-files/pull/587

Attributes

closeInTheEnd

If this is true, it will ONLY close the iterator in the end when it has no more elements (default behaviour) and not on partial evaluations like find() and take() If this is false, iterator will be left open EVEN when it has no more elements

def withHasNext(f: => Boolean): Iterator[A]