object Cons extends ConsFunctions with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cons
  2. Serializable
  3. ConsFunctions
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[S, A, B](prism: Prism[S, (B, S)]): Cons[S, B]
  2. implicit def chainCons[A]: Cons[Chain[A], A]
  3. def fromIso[S, A, B](iso: Iso[S, A])(implicit ev: Cons[A, B]): Cons[S, B]

    lift an instance of Cons using an Iso

  4. implicit def lazyListCons[A]: Cons[LazyList[A], A]
  5. implicit def listCons[A]: Cons[List[A], A]

    *********************************************************************************************

  6. implicit val stringCons: Cons[String, Char]
  7. implicit def vectorCons[A]: Cons[Vector[A], A]

Deprecated Value Members

  1. final def _cons[S, A](head: A, tail: S)(implicit ev: Cons[S, A]): S

    append an element to the head

    append an element to the head

    Definition Classes
    ConsFunctions
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M1) no replacement

  2. final def _uncons[S, A](s: S)(implicit ev: Cons[S, A]): Option[(A, S)]

    deconstruct an S between its head and tail

    deconstruct an S between its head and tail

    Definition Classes
    ConsFunctions
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M1) no replacement

  3. final def cons[S, A](implicit ev: Cons[S, A]): Prism[S, (A, S)]
    Definition Classes
    ConsFunctions
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M1) no replacement

  4. final def headOption[S, A](implicit ev: Cons[S, A]): Optional[S, A]
    Definition Classes
    ConsFunctions
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M1) use index(0)

  5. final def tailOption[S, A](implicit ev: Cons[S, A]): Optional[S, S]
    Definition Classes
    ConsFunctions
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0-M1) no replacement