getValueOrElse

Return the value if available, or produce a fallback with the provided function.

Return

available or default value

Parameters

defaultFun

Function producing a default value based on an error.