|
Scala 2.2.0.9025
|
object
Stream
extends
java.lang.Object with
scala.ScalaObjectStream
provides helper functions
to manipulate streams.Constructor Summary | |
def
this
|
Val Summary | |
val
empty
: scala.Stream[scala.Nothing]
|
Def Summary | |
def
concat
[a]
(xs: scala.Iterator[scala.Stream[a]])
: scala.Stream[a]
|
|
def
concat
[a]
(xs: scala.Seq[scala.Stream[a]])
: scala.Stream[a]
|
|
def
cons
[a]
(hd: a, tl: => scala.Stream[a])
: java.lang.Object with scala.Stream[a]
|
|
def
from
(start: scala.Int)
: scala.Stream[scala.Int]
Create an infinite stream starting at start
and incrementing by 1.
|
|
def
from
(start: scala.Int, step: scala.Int)
: scala.Stream[scala.Int]
Create an infinite stream starting at start
and incrementing by step step
|
|
def
fromIterator
[a]
(it: scala.Iterator[a])
: scala.Stream[a]
|
|
def
range
(start: scala.Int, end: scala.Int)
: scala.Stream[scala.Int]
Create a stream with element values vn+1 = vn + 1
where v0 = start
and vi < end .
|
|
def
range
(start: scala.Int, end: scala.Int, step: scala.Function1[scala.Int, scala.Int])
: scala.Stream[scala.Int]
Create a stream with element values vn+1 = step(vn)
where v0 = start
and vi < end .
|
|
def
range
(start: scala.Int, end: scala.Int, step: scala.Int)
: scala.Stream[scala.Int]
Create a stream with element values vn+1 = vn + step
where v0 = start
and vi < end .
|
Constructor Detail |
def
this
Val Detail |
val
empty
: scala.Stream[scala.Nothing]
Def Detail |
def
concat
[a](xs: scala.Iterator[scala.Stream[a]]): scala.Stream[a]
def
concat
[a](xs: scala.Seq[scala.Stream[a]]): scala.Stream[a]
def
cons
[a](hd: a, tl: => scala.Stream[a]): java.lang.Object with scala.Stream[a]
def
from
(start: scala.Int): scala.Stream[scala.Int]
start
and incrementing by 1.start -
the start value of the stream
start
.
def
from
(start: scala.Int, step: scala.Int): scala.Stream[scala.Int]
start
and incrementing by step step
start -
the start value of the stream
step -
the increment value of the stream
start
.
def
fromIterator
[a](it: scala.Iterator[a]): scala.Stream[a]
def
range
(start: scala.Int, end: scala.Int): scala.Stream[scala.Int]
vn+1 = vn + 1
where v0 = start
and vi < end
.start -
the start value of the stream
end -
the end value of the stream
start
.
def
range
(start: scala.Int, end: scala.Int, step: scala.Function1[scala.Int, scala.Int]): scala.Stream[scala.Int]
vn+1 = step(vn)
where v0 = start
and vi < end
.start -
the start value of the stream
end -
the end value of the stream
step -
the increment function of the stream
start
.
def
range
(start: scala.Int, end: scala.Int, step: scala.Int): scala.Stream[scala.Int]
vn+1 = vn + step
where v0 = start
and vi < end
.start -
the start value of the stream
end -
the end value of the stream
step -
the increment value of the stream
start
.