in scala
trait CountedIterator

abstract trait CountedIterator [A]
extends java.lang.Object
with scala.Iterator[A]
with scala.ScalaObject
Counted iterators keep track of the number of elements seen so far
Author:
Martin Odersky
Version:
1.0, 16/07/2003

Def Summary
abstract def count : scala.Int
counts the elements in this iterator; counts start at 0
Def inherited from scala.Iterator[A]
/: , :\, append, buffered, contains, copyToArray, counted, drop, duplicate, exists, filter, find, flatMap, foldLeft, foldRight, forall, foreach, hasNext, map, next, take, toList, zip, zipWithIndex
Def Detail
abstract def count : scala.Int
counts the elements in this iterator; counts start at 0