ConsFunctions

monocle.function.ConsFunctions

Attributes

Source:
Cons.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Cons.type
object Monocle.type
object all.type

Members list

Concise view

Value members

Deprecated methods

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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala
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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala
final def cons[S, A](implicit ev: Cons[S, A]): Prism[S, (A, S)]

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala
final def headOption[S, A](implicit ev: Cons[S, A]): Optional[S, A]

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala
final def tailOption[S, A](implicit ev: Cons[S, A]): Optional[S, S]

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
Cons.scala