Option.Syntax.3o - Man Page

Binding operators.

Module

Module   Option.Syntax

Documentation

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 .

Info

2026-07-16 OCamldoc OCaml library