Cons

@implicitNotFound("Could not find an instance of Cons[${S}, ${A}]")
trait Cons[S, A] extends Serializable

The Cons typeclass provides a Prism for a way to attach or detach elements on the left side of a structure.

Type parameters:
A

the head part of the focus (A, S) of a Prism

S

the source of a Prism

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def cons: Prism[S, (A, S)]

Concrete methods