Iso

object Iso
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Constructs an Iso from a get and a set function.

Constructs an Iso from a get and a set function.

def identity[A]: Iso[A, A]

The identity optic.

The identity optic.