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