Prism

monocle.Prism$
object Prism

Attributes

Source:
Prism.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Prism.type

Members list

Concise view

Value members

Concrete methods

def apply[S, A](_getOption: S => Option[A])(_reverseGet: A => S): Prism[S, A]

alias for PPrism apply restricted to monomorphic update

alias for PPrism apply restricted to monomorphic update

Attributes

Source:
Prism.scala
def only[A](a: A)(implicit A: Eq[A]): Prism[A, Unit]

a Prism that checks for equality with a given value

a Prism that checks for equality with a given value

Attributes

Source:
Prism.scala
def partial[S, A](get: PartialFunction[S, A])(reverseGet: A => S): Prism[S, A]

Create a Prism using a partial function rather than Option.

Create a Prism using a partial function rather than Option.

Attributes

Source:
Prism.scala

Deprecated methods

def id[A]: Prism[A, A]

Attributes

Deprecated
[Since version 3.0.0-M2]
Source:
Prism.scala