|
Scala 2.4.0-RC2
|
object
cons
extends
java.lang.Object
with
scala.ScalaObject
Constructor Summary | |
def
this
|
Def Summary | |
def
apply
[a]
(hd: a, tl: => scala.Stream[a])
: scala.Stream[a]
A stream consisting of a given first element and remaining elements |
|
def
unapply
[a]
(str: scala.Stream[a])
: scala.Option[scala.Tuple2[a, scala.Stream[a]]]
|
Constructor Detail |
Def Detail |
def
apply
[a](hd: a, tl: => scala.Stream[a]): scala.Stream[a]
hd -
The first element of the result stream
tl -
The remaining elements of the result stream
def
unapply
[a](str: scala.Stream[a]): scala.Option[scala.Tuple2[a, scala.Stream[a]]]