SimpleLens

dev.constructive.eo.optics.SimpleLens
See theSimpleLens companion class
object SimpleLens

Companion for SimpleLens. Hands out a transformEvidence given so the generic Optic.transform / .place / .transfer extensions pick up the same behaviour as the class-level methods.

Attributes

Companion
class
Source
Lens.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
SimpleLens.type

Members list

Givens

Givens

given transformEvidence: [S, A, XA] => SimpleLens[S, A, XA] => S => (o.X, A)

split already has the shape S => (X, A) the generic mutation extensions require.

split already has the shape S => (X, A) the generic mutation extensions require.

Attributes

Source
Lens.scala