Logo GenPRES

Prism Module

Composes a Prism with a Lens, a Prism or an Isomorphism.

Functions and values

Function or value Description

Prism.composeIso (arg1, arg1) (arg2, arg2)

Full Usage: Prism.composeIso (arg1, arg1) (arg2, arg2)

Parameters:
    arg0 : 'a -> 'b option
    arg1 : 'b -> 'a -> 'a
    arg2 : 'b -> 'c
    arg3 : 'c -> 'b

Returns: Prism<'a, 'c>
Type parameters: 'a, 'b, 'c

Compose a Prism with an Isomorphism, giving a Prism.

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

Prism.composeLens (arg1, arg1) (arg2, arg2)

Full Usage: Prism.composeLens (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, giving a Prism.

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

Prism.composePrism (arg1, arg1) (arg2, arg2)

Full Usage: Prism.composePrism (arg1, arg1) (arg2, arg2)

Parameters:
    arg0 : 'a -> 'b option
    arg1 : 'b -> 'a -> 'a
    arg2 : 'b -> 'c option
    arg3 : 'c -> 'b -> 'b

Returns: Prism<'a, 'c>
Type parameters: 'a, 'b, 'c

Compose a Prism with a Prism, giving a Prism.

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

Type something to start searching.