public class Iterators
extends Object
Constructor and Description |
---|
Iterators() |
Modifier and Type | Method and Description |
---|---|
static long |
size(scala.collection.Iterator<?> iterator)
Counts the number of elements of an iterator using a while loop rather than calling
TraversableOnce.size() because it uses a for loop, which is slightly slower
in the current version of Scala. |
public static long size(scala.collection.Iterator<?> iterator)
TraversableOnce.size()
because it uses a for loop, which is slightly slower
in the current version of Scala.iterator
- (undocumented)