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]
++ , /:, :\, addString, append, buffered, contains, copyToArray, copyToBuffer, counted, drop, dropWhile, duplicate, exists, filter, find, flatMap, foldLeft, foldRight, forall, foreach, hasNext, map, mkString, mkString, next, predicatedIterator, reduceLeft, reduceRight, take, takeWhile, toList, zip, zipWithIndex

Def Detail

`abstract def` count : scala.Int

  counts the elements in this iterator; counts start at 0