Lens

object Lens
class Object
trait Matchable
class Any
Lens.type

Value members

Concrete methods

final def apply[S, A](view: S => A)(set: S => A => S): Lens[S, A]

create a monomorphic Lens from a getter/setter pair

create a monomorphic Lens from a getter/setter pair

final def id[S]: Lens[S, S]

monomorphic identity of a Lens

monomorphic identity of a Lens

final def lens[S, A](to: S => (A, A => S)): Lens[S, A]

create a monomorphic Lens from a combined getter/setter function

create a monomorphic Lens from a combined getter/setter function

final def outside[S, A, R](prism: Prism[S, A]): Lens[S => R, A => R]

use a Prism as a kind of first-class pattern.

use a Prism as a kind of first-class pattern.