lens

Functional lenses
IN THIS PACKAGE
Module Lens . Infix
val (|.) : 'a -> ( 'a, 'b ) t -> 'b

Get operator

val (^=) : ( 'a, 'b ) t -> 'b -> 'a -> 'a

Set operator

val (^%=) : ( 'a, 'b ) t -> ( 'b -> 'b ) -> 'a -> 'a

Mod operator

Composition

val (|--) : ( 'a, 'b ) t -> ( 'b, 'c ) t -> ( 'a, 'c ) t

Flipped compose operator

val (--|) : ( 'a, 'b ) t -> ( 'c, 'a ) t -> ( 'c, 'b ) t

Compose operator

val (***) : ( 'a, 'b ) t -> ( 'c, 'd ) t -> ( 'a * 'c, 'b * 'd ) t

Pair operator

Pseudo-imperatives

val (+=) : ( 'a, int ) t -> int -> 'a -> 'a
val (-=) : ( 'a, int ) t -> int -> 'a -> 'a