Returns the success value if present, otherwise returns the given default value.
Example:
var r = Result.error<string,string> ("err");
assert (r.unwrapOr ("fallback") == "fallback");
| defaultValue |
the default to return on error. |
|
the success value, or defaultValue on error. |