Packages

object cons

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

Source
LazyList.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. cons
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[A](hd: => A, tl: => LazyList[A]): LazyList[A]

    A lazy list consisting of a given first element and remaining elements

    A lazy list consisting of a given first element and remaining elements

    hd

    The first element of the result lazy list

    tl

    The remaining elements of the result lazy list

  2. def unapply[A](xs: LazyList[A]): Option[(A, LazyList[A])]

    Maps a lazy list to its head and tail