Packages

object cons

An alternative way of building and matching Streams using Stream.cons(hd, tl).

Source
Stream.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: => Stream[A]): Stream[A]

    A stream consisting of a given first element and remaining elements

    A stream consisting of a given first element and remaining elements

    hd

    The first element of the result stream

    tl

    The remaining elements of the result stream

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

    Maps a stream to its head and tail