scala.Iterator

class TakeWhileIterator

[source: scala/Iterator.scala]

protected class TakeWhileIterator(p : (A) => Boolean)
extends PredicatedIterator
Method Summary
protected override def doEnd : Boolean
protected override def fill (sz : Int) : Seq[A]
used to fill lookahead buffer. sz can be used by implementations as a heauristic to determine how many elements are desired
Methods inherited from Default
putBack, defaultPeek, hasNext, peekList, next
Methods inherited from PutBack
counted, flushFrom
Methods inherited from Advanced
head, peek, startsWith, readIfStartsWith, toString, advanced
Methods inherited from BufferedIterator
headOpt, buffered, readIf, readWhile
Methods inherited from Iterator
take, drop, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, mkString, mkString, addString
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
protected override def doEnd : Boolean
Overrides
PredicatedIterator.doEnd

protected override def fill(sz : Int) : Seq[A]
used to fill lookahead buffer. sz can be used by implementations as a heauristic to determine how many elements are desired
Overrides
PredicatedIterator.fill