BijectiveLens
The base trait for all bijective lenses
Type parameters
- M
-
The type of the model
- V
-
The type of the view
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Abstract methods
Override the toModel function to make the lens bijective
Override the toModel function to make the lens bijective
Attributes
Concrete methods
Overloads the compose function to return a bijective lens This version does not use an LVar internally, making it more efficient than the implementation in Lens
Overloads the compose function to return a bijective lens This version does not use an LVar internally, making it more efficient than the implementation in Lens
Value parameters
- other
-
The other lens
Attributes
Inverts the lens such that e.g. an AddLens functions like a SubLens. Note that this does not change the model-view relationship, i.e. the asymmetry is not inverted.
Inverts the lens such that e.g. an AddLens functions like a SubLens. Note that this does not change the model-view relationship, i.e. the asymmetry is not inverted.
Attributes
Inherited methods
Concatenates this lens with another lens and returns the resulting lens. Internally, a LensVar is created, meaning that this function is just for convenience and not performance
Concatenates this lens with another lens and returns the resulting lens. Internally, a LensVar is created, meaning that this function is just for convenience and not performance
Value parameters
- other
-
The other lens
Attributes
- Inherited from:
- Lens