in scala
object Stream

object Stream
extends java.lang.Object
with ScalaObject
The object Stream provides helper functions to manipulate streams.
author:
Martin Odersky, Matthias Zenger
version:
1.1 08/08/03

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
Create a stream with element values vn+1 = vn + 1 where v0 = start and vi < end.
param:
start the start value of the stream
param:
end the end value of the stream
return:
the stream starting at value start.

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.
param:
start the start value of the stream
param:
end the end value of the stream
param:
step the increment function of the stream
return:
the stream starting at value start.

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.
param:
start the start value of the stream
param:
end the end value of the stream
param:
step the increment value of the stream
return:
the stream starting at value start.