scala.Stream

object cons

[source: 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
def apply[a](hd : a, tl : => Stream[a]) : Stream[a]
A stream consisting of a given first element and remaining elements
Parameters
hd - The first element of the result stream
tl - The remaining elements of the result stream

def unapply[a](str : Stream[a]) : Option[(a, Stream[a])]