|
Scala Library Documentation
|
|
scala/Iterator.scala]
object
Iterator
extends AnyRefIterator object provides various functions for
creating specialized iterators.| Value Summary | |
val
|
empty : Iterator[Nothing] |
| Method Summary | |
def
|
from
(start : Int) : Iterator[Int]
Create an iterator with elements
en+1 = en + 1
where e0 = start. |
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, step : Int) : Iterator[Int]
Create an iterator with elements
en+1 = en + step
where e0 = start. |
def
|
fromArray [a](xs : Array[a]) : Iterator[a] |
def
|
fromArray [a](xs : Array[a], start : Int, length : Int) : 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) : Range
Create an iterator with elements
en+1 = en + 1
where e0 = start
and ei < end. |
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. |
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 |
| Value Details |
| Method Details |
x - the elementxs - the array of elementsxs.xs - the array of elementsstart - ...length - ...str - the given stringstrn - the product arityProduct<n>.
def
fromCaseClass(n : Product) : Iterator[Any]
fromProduct instead.en+1 = en + 1
where e0 = start
and ei < end.start - the start value of the iteratorend - the end value of the iterator[start;end).en+1 = en + step
where e0 = start
and ei < end.start - the start value of the iteratorend - the end value of the iteratorstep - the increment value of the iterator (must be positive or negative)[start;end).en+1 = step(en)
where e0 = start
and ei < end.start - the start value of the iteratorend - the end value of the iteratorstep - the increment function of the iterator[start;end).en+1 = en + 1
where e0 = start.start - the start value of the iteratorstart.en+1 = en + step
where e0 = start.start - the start value of the iteratorstep - the increment value of the iteratorstart.en+1 = step(en)
where e0 = start.start - the start value of the iteratorstep - the increment function of the iteratorstart.|
Scala Library Documentation
|
|