Scala Library
|
|
scala/CountedIterator.scala
]
trait
CountedIterator[+A]
extends
Iterator[A]Method Summary | |
override def
|
buffered
: BufferedIterator[A] with CountedIterator[A]
Returns a buffered iterator from this iterator.
|
abstract def
|
count
: Int
counts the elements in this iterator; counts start at 0
|
override def
|
counted
: CountedIterator[A]
Returns a counted iterator from this iterator.
|
Methods inherited from Iterator | |
hasNext (abstract), next (abstract), take, drop, slice, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, collect, mkString, mkString, mkString, addString, toString |
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
count : Int
override
def
counted : CountedIterator[A]
override
def
buffered : BufferedIterator[A] with
CountedIterator[A]
Scala Library
|
|