|
Scala
1.4.0.3 |
|||
Iterator
object provides various functions for
creating specialized iterators.
Method Summary | |
final
|
def empty[a]: Iterator[a]
|
final
|
def from(lo: Int): Iterator[Int]
Create an iterator with elements en+1 = en + 1
where e0 = lo .
|
final
|
def from(lo: Int, step: Int): Iterator[Int]
Create an iterator with elements en+1 = en + step
where e0 = lo .
|
final
|
def from(lo: Int, step: (Int) => Int): Iterator[Int]
Create an iterator with elements en+1 = step(en)
where e0 = lo .
|
final
|
def fromArray[a](xs: Array[a]): Iterator[a]
|
final
|
def fromCaseClass(n: CaseClass): Iterator[Any]
|
final
|
def fromString(str: String): Iterator[Char]
|
final
|
def fromValues[a](xs: a*): Iterator[a]
|
final
|
def range(lo: Int, end: Int): Iterator[Int]
Create an iterator with elements en+1 = en + 1
where e0 = lo
and ei < end .
|
final
|
def range(lo: Int, end: Int, step: Int): Iterator[Int]
Create an iterator with elements en+1 = en + step
where e0 = lo
and ei < end .
|
final
|
def range(lo: Int, end: Int, step: (Int) => Int): Iterator[Int]
Create an iterator with elements en+1 = step(en)
where e0 = lo
and ei < end .
|
final
|
def single[a](x: a): Iterator[a]
|
Method Detail |
final def empty[a]: Iterator[a]
final def single[a](x: a): Iterator[a]
final def fromValues[a](xs: a*): Iterator[a]
final def fromArray[a](xs: Array[a]): Iterator[a]
final def fromString(str: String): Iterator[Char]
final def fromCaseClass(n: CaseClass): Iterator[Any]
final def range(lo: Int, end: Int): Iterator[Int]
en+1 = en + 1
where e0 = lo
and ei < end
.
lo
-
the start value of the iterator
end
-
the end value of the iterator
final def range(lo: Int, end: Int, step: Int): Iterator[Int]
en+1 = en + step
where e0 = lo
and ei < end
.
lo
-
the start value of the iterator
end
-
the end value of the iterator
step
-
the increment value of the iterator (must be positive or negative)
final def range(lo: Int, end: Int, step: (Int) => Int): Iterator[Int]
en+1 = step(en)
where e0 = lo
and ei < end
.
lo
-
the start value of the iterator
end
-
the end value of the iterator
step
-
the increment function of the iterator
final def from(lo: Int): Iterator[Int]
en+1 = en + 1
where e0 = lo
.
lo
-
the start value of the iterator
lo
.
final def from(lo: Int, step: Int): Iterator[Int]
en+1 = en + step
where e0 = lo
.
lo
-
the start value of the iterator
step
-
the increment value of the iterator
lo
.
final def from(lo: Int, step: (Int) => Int): Iterator[Int]
en+1 = step(en)
where e0 = lo
.
lo
-
the start value of the iterator
step
-
the increment function of the iterator
lo
.
|
Scala
1.4.0.3 |
|||