cons
object cons
An alternative way of building and matching Streams using Stream.cons(hd, tl).
- Source
- Stream.scala
Value members
Concrete methods
A stream consisting of a given first element and remaining elements
A stream consisting of a given first element and remaining elements
- Value Params
- hd
The first element of the result stream
- tl
The remaining elements of the result stream
- Source
- Stream.scala