ZLens

object ZLens
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[S, T, A, B](get: S => OpticResult[Nothing, A], set: B => S => OpticResult[Nothing, T]): ZLens[S, T, A, B]

Constructs a ZLens from a get and a set function.

Constructs a ZLens from a get and a set function.

def first[A, B, C]: ZLens[(A, B), (C, B), A, C]

An optic that accesses the first element of a tuple.

An optic that accesses the first element of a tuple.

def second[A, B, C]: ZLens[(A, B), (A, C), B, C]

An optic that accesses the second element of a tuple.

An optic that accesses the second element of a tuple.