in scala.Stream
object cons

`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` this

Def Detail

`def` apply [a](hd: a, tl: => scala.Stream[a]): scala.Stream[a]

  A stream consisting of a given first element and remaining elements

Parameters:
  `hd -` The first element of the result stream
Parameters:
  `tl -` The remaining elements of the result stream

`def` unapply [a](str: scala.Stream[a]): scala.Option[scala.Tuple2[a, scala.Stream[a]]]