Module Loko.Result

val map : ( 'SO, 'FO, 'GO, 'TO ) optic -> ( 'SE, 'FE, 'GE, 'TE ) optic -> ( ( 'SO, 'SE ) Stdlib.Result.t, ( 'FO, 'FE ) Stdlib.Result.t, ( 'GO, 'GE ) Stdlib.Result.t, ( 'TO, 'TE ) Stdlib.Result.t ) optic

An isomorphism between results.

val on_ok : ( ( 'F, 'S ) Stdlib.Result.t, 'F, 'G, ( 'G, 'S ) Stdlib.Result.t ) optic

A prism that focuses on Ok.

val on_error : ( ( 'S, 'F ) Stdlib.Result.t, 'F, 'G, ( 'S, 'G ) Stdlib.Result.t ) optic

A prism that focuses on Error.