An Optic
is able to get and set a piece of a whole, possibly failing. In
the most general possible case the get and set types are distinct and
getting may fail with a different error than setting.
An Optic
is able to get and set a piece of a whole, possibly failing. In
the most general possible case the get and set types are distinct and
getting may fail with a different error than setting.
- Companion
- object
Value members
Concrete methods
A symbolic alias for zip
.
A symbolic alias for zip
.
A symbolic alias for orElse
.
A symbolic alias for orElse
.
Applies this optic to the specified whole, returning a new optic that no longer needs a whole to get and set and always gets and sets a piece of the specified whole.
Applies this optic to the specified whole, returning a new optic that no longer needs a whole to get and set and always gets and sets a piece of the specified whole.
Constructs a new optic that attempts to get and set with this optic, but if getting or setting fails falls back to getting or setting with that optic.
Constructs a new optic that attempts to get and set with this optic, but if getting or setting fails falls back to getting or setting with that optic.
Constructs a new optic that gets and sets with both this optic and that optic. This optic and that optic must get and set different pieces of the whole.
Constructs a new optic that gets and sets with both this optic and that optic. This optic and that optic must get and set different pieces of the whole.