A Result
containing the value wrapped in maybe
in an Ok
, or
the value generated by elseFn
in an Err
.
Transform the Maybe
into a Result
, using the wrapped
value as the Ok
value if Just
; otherwise using elseFn
to generate Err
.
The function which generates an error of type E
.
A Result
containing the value wrapped in maybe
in an Ok
, or
the value generated by elseFn
in an Err
.
Transform the
Maybe
into aResult
, using the wrapped value as theOk
value ifJust
; otherwise usingelseFn
to generateErr
.