Returns the value contained in the Option. If the option is None, it evaluates the provided function for an alternative.
Option
None
Function to evaluate in case the option is None.
Option possibly containing the value to get.
Returns the value contained in the
Option
. If the option isNone
, it evaluates the provided function for an alternative.