scala.collection.immutable.LazyListIterable.cons
An alternative way of building and matching lazy lists using LazyListIterable.cons(hd, tl).
Members list
A lazy list consisting of a given first element and remaining elements.
A lazy list consisting of a given first element and remaining elements.
Type parameters
- A
-
the element type of the lazy list
Value parameters
- hd
-
The first element of the result lazy list
- tl
-
The remaining elements of the result lazy list
Attributes
- Source
-
LazyListIterable.scala
Maps a lazy list to its head and tail.
Maps a lazy list to its head and tail.
Type parameters
- A
-
the element type of the lazy list
Value parameters
- xs
-
the lazy list to decompose
Attributes
- Source
-
LazyListIterable.scala