BatOption.Infix
val (|?) : 'a option -> 'a -> 'a
Like default, with the arguments reversed. None |? 10 returns 10, while Some "foo" |? "bar" returns "foo".
default
None |? 10
10
Some "foo" |? "bar"
"foo"
val (>>=) : 'a option -> ('a -> 'b option) -> 'b option
as Monad.bind
Monad.bind