cons (original) (raw)

scala.collection.immutable.LazyList.cons

An alternative way of building and matching lazy lists using LazyList.cons(hd, tl).

Attributes

Source

LazyList.scala

Graph

Supertypes

Self type

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

Value parameters

hd

The first element of the result lazy list

tl

The remaining elements of the result lazy list

Attributes

Source

LazyList.scala

Maps a lazy list to its head and tail

Maps a lazy list to its head and tail

Attributes

Source

LazyList.scala

In this article