|
Scala 2
|
object
Stream
extends
java.lang.Object with
ScalaObjectStream
provides helper functions
to manipulate streams.Constructor Summary | |
def
this
|
Def Summary | |
def
concat
[ a ]
( xs : Iterator )
: Stream
|
|
def
concat
[ a ]
( xs : Seq )
: Stream
|
|
def
cons
[ a ]
( hd : a , tl : scala.<byname> )
: <refinement>
|
|
def
fromIterator
[ a ]
( it : Iterator )
: Stream
|
|
def
range
( start : scala.Int , end : scala.Int )
: Stream
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 : Function1 )
: Stream
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 )
: Stream
Create a stream with element values vn+1 = vn + step
where v0 = start
and vi < end .
|
Constructor Detail |
def
this
Def Detail |
def
concat
[ a ]( xs : Iterator ) : Stream
def
concat
[ a ]( xs : Seq ) : Stream
def
cons
[ a ]( hd : a , tl : scala.<byname> ) : <refinement>
def
fromIterator
[ a ]( it : Iterator ) : Stream
def
range
( start : scala.Int , end : scala.Int ) : Stream
vn+1 = vn + 1
where v0 = start
and vi < end
.start
.def
range
( start : scala.Int , end : scala.Int , step : Function1 ) : Stream
vn+1 = step(vn)
where v0 = start
and vi < end
.start
.def
range
( start : scala.Int , end : scala.Int , step : scala.Int ) : Stream
vn+1 = vn + step
where v0 = start
and vi < end
.start
.