Iterator.zipWithIndex is not a good substitute, because it requires an
extra call to Iterator.next -- which fails if the iterator is done and
will also prevent the next parser from running..
Linear Supertypes
Iterator[T], TraversableOnce[T], GenTraversableOnce[T], AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
CountedIterator
Iterator
TraversableOnce
GenTraversableOnce
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newCountedIterator(it: Iterator[T])
Type Members
classGroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
A wrapper for Iterator that counts calls to next.
Iterator.zipWithIndex is not a good substitute, because it requires an extra call to Iterator.next -- which fails if the iterator is done and will also prevent the next parser from running..