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.
© 1995-2026 INRIA.
https://ocaml.org/manual/5.5/api/Option.Syntax.html