Stdlib320.Option
A module containing basic operations for options.
Mapping function for options. It applies a function to the value of the option if the option is not None
. map f o
is
Some (f x)
if o = Some x
None
if o = None
Monadic bind for options. It "does something" to the value of the option if it is not None
, and passes along the None
otherwise. bind o f
is
f x
if o = Some x
None
if o = None