object Cons extends ConsFunctions with Serializable
- Source
- Cons.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Cons
- Serializable
- ConsFunctions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply[S, A, B](prism: Prism[S, (B, S)]): Cons[S, B]
- implicit def chainCons[A]: Cons[Chain[A], A]
- def fromIso[S, A, B](iso: Iso[S, A])(implicit ev: Cons[A, B]): Cons[S, B]
- implicit def lazyListCons[A]: Cons[LazyList[A], A]
- implicit def listCons[A]: Cons[List[A], A]
*********************************************************************************************
- implicit val stringCons: Cons[String, Char]
- implicit def vectorCons[A]: Cons[Vector[A], A]
Deprecated Value Members
- 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
- 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
- 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
- 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)
- 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