Scala Library
|
|
scala/collection/BufferedIterator.scala
]
trait
BufferedIterator[+A]
extends
Iterator[A]head
that inspects the next element without discarding it.Method Summary | |
override def
|
buffered
: BufferedIterator[A]
Returns a buffered iterator from this iterator.
|
abstract def
|
head
: A
Returns next element of iterator without advancing beyond it.
|
Methods inherited from Iterator | |
hasNext (abstract), next (abstract), take, drop, slice, map, ++, flatMap, filter, filterNot, partialMap, takeWhile, partition, dropWhile, zip, padTo, zipWithIndex, zipAll, foreach, forall, exists, contains, find, indexWhere, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, reduceLeftOption, reduceRightOption, grouped, sliding, length, duplicate, patch, copyToArray, copyToArray, copyToArray, copyToBuffer, toList, toStream, toSeq, mkString, mkString, mkString, addString, addString, addString, toString, append, findIndexOf, collect, counted, readInto, readInto, readInto |
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 |
abstract
def
head : A
override
def
buffered : BufferedIterator[A]
Scala Library
|
|