|
Scala Library
|
|
scala/Stream.scala]
object
cons
extends AnyRef| Method Summary | |
def
|
apply
[A](hd : A, tl : => Stream[A]) : Stream[A]
A stream consisting of a given first element and remaining elements
|
def
|
unapply [A](str : Stream[A]) : Option[(A, Stream[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 |
| Method Details |
hd - The first element of the result streamtl - The remaining elements of the result stream|
Scala Library
|
|