abstract class Cons[S, A] extends Serializable

Typeclass that defines a Prism between an S and its head A and tail S

S

source of Prism and tail of Prism target

A

head of Prism target, A is supposed to be unique for a given S

Annotations
@implicitNotFound() @deprecated
Deprecated

(Since version 3.0.0-M1) no replacement

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

Instance Constructors

  1. new Cons()

Abstract Value Members

  1. abstract def cons: Prism[S, (A, S)]

Concrete Value Members

  1. def headOption: Optional[S, A]
  2. def tailOption: Optional[S, S]