package mechaml
Module Mechaml.OptionSource
Helpers for the option Monad
Monadic operations
Apply a two arguments function to a pair of optionals : if one of the component is None, the result is None, otherwise map2 (Some x, Some y) f is Some (f x y)
Return the content of an optional, or the given default value if the first argument is None.