module Infix:sig
..end
val (|?) : 'a option -> 'a -> 'a
Like BatOption.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