Logo GenPRES

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

(>->) (arg1, arg1) (arg2, arg2)

Full Usage: (>->) (arg1, arg1) (arg2, arg2)

Parameters:
    arg0 : '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.

arg0 : 'a -> 'b
arg1 : 'b -> 'a -> 'a
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> 'b
Returns: Lens<'a, 'c>

(>?>) (arg1, arg1) (arg2, arg2)

Full Usage: (>?>) (arg1, arg1) (arg2, arg2)

Parameters:
    arg0 : '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.

arg0 : 'a -> 'b option
arg1 : 'b -> 'a -> 'a
arg2 : 'b -> 'c
arg3 : 'c -> 'b -> 'b
Returns: Prism<'a, 'c>

Type something to start searching.