Cons

monocle.function.Cons
See theCons companion object
abstract class Cons[S, A] extends Serializable

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

Attributes

A

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

S

source of Prism and tail of Prism target

Companion:
object
Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

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

Attributes

Source:
Cons.scala

Concrete methods

def headOption: Optional[S, A]

Attributes

Source:
Cons.scala
def tailOption: Optional[S, S]

Attributes

Source:
Cons.scala