cons (original) (raw)
scala.collection.immutable.Stream.cons
An alternative way of building and matching Streams using Stream.cons(hd, tl).
Attributes
Source
Graph
Supertypes
Self type
Members list
A stream consisting of a given first element and remaining elements
A stream consisting of a given first element and remaining elements
Value parameters
hd
The first element of the result stream
tl
The remaining elements of the result stream
Attributes
Source
Maps a stream to its head and tail
Maps a stream to its head and tail
Attributes
Source
In this article