ZPrism
object ZPrism
class Object
trait Matchable
class Any
Value members
Concrete methods
def apply[S, T, A, B](get: S => OpticResult[(OpticFailure, T), A], set: B => OpticResult[Nothing, T]): ZPrism[S, T, A, B]
Constructs a ZPrism
from a get
and a set
function.
Constructs a ZPrism
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
.