|
Scala 2.3.2
|
object
Iterator
extends
java.lang.Object
with
scala.ScalaObject
Iterator
object provides various functions for
creating specialized iterators.Constructor Summary | |
def
this
|
Val Summary | |
val
empty
: java.lang.Object with scala.Iterator[scala.Nothing]
|
Def Summary | |
def
from
(lo: scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = en + 1
where e0 = lo .
|
|
def
from
(lo: scala.Int, step: (scala.Int) => scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = step(en)
where e0 = lo .
|
|
def
from
(lo: scala.Int, step: scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = en + step
where e0 = lo .
|
|
def
fromArray
[a]
(xs: scala.Array[a])
: scala.Iterator[a]
|
|
def
fromArray
[a]
(xs: scala.Array[a], start: scala.Int, length: scala.Int)
: scala.Iterator[a]
|
|
def
fromCaseClass
(n: scala.Product)
: scala.Iterator[scala.Any]
|
|
def
fromProduct
(n: scala.Product)
: scala.Iterator[scala.Any]
|
|
def
fromString
(str: java.lang.String)
: scala.Iterator[scala.Char]
|
|
def
fromValues
[a]
(xs: a*)
: scala.Iterator[a]
|
|
def
range
(lo: scala.Int, end: scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = en + 1
where e0 = lo
and ei < end .
|
|
def
range
(lo: scala.Int, end: scala.Int, step: (scala.Int) => scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = step(en)
where e0 = lo
and ei < end .
|
|
def
range
(lo: scala.Int, end: scala.Int, step: scala.Int)
: scala.Iterator[scala.Int]
Create an iterator with elements en+1 = en + step
where e0 = lo
and ei < end .
|
|
def
single
[a]
(x: a)
: java.lang.Object with scala.Iterator[a]
|
Constructor Detail |
Val Detail |
Def Detail |
def
from
(lo: scala.Int): scala.Iterator[scala.Int]
en+1 = en + 1
where e0 = lo
.lo -
the start value of the iterator
lo
.
def
from
(lo: scala.Int, step: (scala.Int) => scala.Int): scala.Iterator[scala.Int]
en+1 = step(en)
where e0 = lo
.lo -
the start value of the iterator
step -
the increment function of the iterator
lo
.
def
from
(lo: scala.Int, step: scala.Int): scala.Iterator[scala.Int]
en+1 = en + step
where e0 = lo
.lo -
the start value of the iterator
step -
the increment value of the iterator
lo
.
def
fromArray
[a](xs: scala.Array[a]): scala.Iterator[a]
xs -
the array of elements
xs
.
def
fromArray
[a](xs: scala.Array[a], start: scala.Int, length: scala.Int): scala.Iterator[a]
xs -
the array of elements
start -
...
length -
...
def
fromCaseClass
(n: scala.Product): scala.Iterator[scala.Any]
fromProduct
instead.
def
fromProduct
(n: scala.Product): scala.Iterator[scala.Any]
n -
the product arity
Product<n>
.
def
fromString
(str: java.lang.String): scala.Iterator[scala.Char]
str -
the given string
str
def
fromValues
[a](xs: a*): scala.Iterator[a]
def
range
(lo: scala.Int, end: scala.Int): scala.Iterator[scala.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
[lo;end)
.
def
range
(lo: scala.Int, end: scala.Int, step: (scala.Int) => scala.Int): scala.Iterator[scala.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
[lo;end)
.
def
range
(lo: scala.Int, end: scala.Int, step: scala.Int): scala.Iterator[scala.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)
[lo;end)
.
def
single
[a](x: a): java.lang.Object with scala.Iterator[a]
x -
the element