Optic Module
Functions for using optics to operate on data structures, using the basic optic operations of get, set and map. The functions are overloaded to take either lenses or prisms, with the return type being inferred.
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
get optic target
Parameters:
^a
target : 'b
Returns: 'c
Modifiers: inline Type parameters: ^a, 'b, 'c |
|
Full Usage:
map optic f
Parameters:
^a
f : 'b
Returns: 'c
Modifiers: inline Type parameters: ^a, 'b, 'c |
|
Full Usage:
set optic value
Parameters:
^a
value : 'b
Returns: 'c
Modifiers: inline Type parameters: ^a, 'b, 'c |