package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val (|?) : 'a option -> 'a -> 'a

Like default, with the arguments reversed. None |? 10 returns 10, while Some "foo" |? "bar" returns "foo".

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

as Monad.bind

OCaml

Innovation. Community. Security.