alan
alan copied to clipboard
getOrDefault for Result
getOrDefault
implementation for Result
that takes no arguments and provides the default value for the given type. It should call getOr
and the compiler provides a default value.