Operators Module
Holds the infix operators to compose a Lens with a Lens and a Prism with a Lens. The operators keep the long optic chains in ZForm.Lib/DoseRule.fs readable from left to right. They are plain functions, not inline, so unlike the Aether operators they cannot choose the composition by the kind of optic: >-> composes two lenses, >?> composes a prism with a lens, and the compiler rejects the wrong operator. The few places that compose a prism with a prism call Prism.composePrism directly.
Functions and values
| Function or value |
Description
|
Full Usage:
(>->) (arg1, arg1) (arg2, arg2)
Parameters:
'a -> 'b
arg1 : 'b -> 'a -> 'a
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> 'b
Returns: Lens<'a, 'c>
Type parameters: 'a, 'b, 'c |
Compose a Lens with a Lens.
|
Full Usage:
(>?>) (arg1, arg1) (arg2, arg2)
Parameters:
'a -> 'b option
arg1 : 'b -> 'a -> 'a
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> 'b
Returns: Prism<'a, 'c>
Type parameters: 'a, 'b, 'c |
Compose a Prism with a Lens.
|
GenPRES