package mechaml

  1. Overview
  2. Docs
val (>>=) : 'a option -> ('a -> 'b option) -> 'b option

bind

val (>|=) : 'a option -> ('a -> 'b) -> 'b option

Map a function and apply it to the given argument

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

map_pair

val (|?) : 'a option -> 'a -> 'a

default

OCaml

Innovation. Community. Security.