Prism
object Prism
class Object
trait Matchable
class Any
Value members
Concrete methods
def apply[S, A](get: S => OpticResult[OpticFailure, A], set: A => OpticResult[Nothing, S]): Prism[S, A]
Constructs a Prism
from a get
and a set
function.
Constructs a Prism
from a get
and a set
function.
An optic that accesses the Left
case of an Either
.
An optic that accesses the Left
case of an Either
.
An optic that accesses the None
case of an Option
.
An optic that accesses the None
case of an Option
.