Header menu logo issie

Optics Module

Various optics implemented for common types such as tuples, lists and maps, along with an identity lens.

Nested modules

Modules Description

Array

Choice

List

Map

Option

Result

Functions and values

Function or value Description

box_

Full Usage: box_

Returns: Isomorphism<obj, 'a>

Isomorphism between a boxed and unboxed type.

Returns: Isomorphism<obj, 'a>

fst_

Full Usage: fst_

Returns: Lens<('a * 'b), 'a>

Lens to the first item of a tuple.

Returns: Lens<('a * 'b), 'a>

id_

Full Usage: id_

Returns: Lens<'a, 'a>
Returns: Lens<'a, 'a>

snd_

Full Usage: snd_

Returns: Lens<('a * 'b), 'b>

Lens to the second item of a tuple.

Returns: Lens<('a * 'b), 'b>

Type something to start searching.