scala

object Iterator

[source: scala/Iterator.scala]

object Iterator
extends AnyRef
The Iterator object provides various functions for creating specialized iterators.
Author
Martin Odersky
Matthias Zenger
Version
1.2, 10/02/2007
Value Summary
val empty : Iterator[Nothing]
Method Summary
def from (start : Int, step : (Int) => Int) : Iterator[Int]
Create an iterator with elements en+1 = step(en) where e0 = start.
def from (start : Int) : Iterator[Int]
Create an iterator with elements en+1 = en + 1 where e0 = start.
def from (start : Int, step : Int) : Iterator[Int]
Create an iterator with elements en+1 = en + step where e0 = start.
def fromArray [a](xs : Array[a], start : Int, length : Int) : Iterator[a]
def fromArray [a](xs : Array[a]) : Iterator[a]
def fromCaseClass (n : Product) : Iterator[Any]
def fromProduct (n : Product) : Iterator[Any]
def fromString (str : String) : Iterator[Char]
def fromValues [a](xs : a*) : Iterator[a]
def range (start : Int, end : Int, step : (Int) => Int) : Iterator[Int]
Create an iterator with elements en+1 = step(en) where e0 = start and ei < end.
def range (start : Int, end : Int, step : Int) : Range
Create an iterator with elements en+1 = en + step where e0 = start and ei < end. Will return an empty range for nonsensical range/step arguments.
def range (start : Int, end : Int) : Range
Create an iterator with elements en+1 = en + 1 where e0 = start and ei < end. However, if start > end, then it will return an empty trange.
def single [a](x : a) : Iterator[a]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf