Header menu logo FCQRS

Optic Module

Types

Type Description

Get

Static overloads of the optic get function (^.).

Map

Static overloads of the optic map function (%=).

Set

Static overloads of the optic set function (^=).

Functions and values

Function or value Description

Optic.get optic target

Full Usage: Optic.get optic target

Parameters:
    optic : ^a
    target : 'b

Returns: 'c
Modifiers: inline
Type parameters: ^a, 'b, 'c

Get a value using an optic.

optic : ^a
target : 'b
Returns: 'c

Optic.map optic f

Full Usage: Optic.map optic f

Parameters:
    optic : ^a
    f : 'b

Returns: 'c
Modifiers: inline
Type parameters: ^a, 'b, 'c

Modify a value using an optic.

optic : ^a
f : 'b
Returns: 'c

Optic.set optic value

Full Usage: Optic.set optic value

Parameters:
    optic : ^a
    value : 'b

Returns: 'c
Modifiers: inline
Type parameters: ^a, 'b, 'c

Set a value using an optic.

optic : ^a
value : 'b
Returns: 'c

Type something to start searching.