Lens

object Lens
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Constructs a Lens from a get and a set function.

Constructs a Lens from a get and a set function.

def first[A, B]: Lens[(A, B), A]

An optic that accesses the first element of a tuple.

An optic that accesses the first element of a tuple.

def second[A, B]: Lens[(A, B), B]

An optic that accesses the second element of a tuple.

An optic that accesses the second element of a tuple.