Result.Syntax(3)

NAME
Result.Syntax - Binding operators.

Module
Module Result.Syntax

Documentation

Module Syntax
 : sig end

Binding operators. See manual section 12.23 for details.

Since 5.4

val ( let* ) : ('a, 'e) result -> ('a -> ('b, 'e) result) -> ('b, 'e) result

( let* ) is Result.bind .

val ( and* ) : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result

( and* ) is Result.product .

val let+ : ('a, 'e) result -> ('a -> 'b) -> ('b, 'e) result

( let+ ) is Result.map .

val and+ : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result

( and+ ) is Result.product .