Module Option.Syntax

module Syntax: sig .. end

Binding operators. See manual section 12.23 for details.


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.