Option.Syntax(3) OCaml library Option.Syntax(3)

Option.Syntax - Binding operators.

Module Option.Syntax

Module Syntax
: sig end

Binding operators. See manual section 12.23 for details.

Since 5.5

val ( let* ) : 'a option -> ('a -> 'b option) -> 'b option

( let* ) is Option.bind .

val ( and* ) : 'a option -> 'b option -> ('a * 'b) option

( and* ) is Option.product .

val let+ : 'a option -> ('a -> 'b) -> 'b option

( let+ ) is Option.map .

val and+ : 'a option -> 'b option -> ('a * 'b) option

( and+ ) is Option.product .

2026-06-22 OCamldoc