Transform a true-myth.maybe!Maybe Maybe into a Result.
Result
If the Maybe is a true-myth.maybe!Just Just, its value will be wrapped in the Ok variant; if it is a Maybe.Nothing Nothing the errValue will be wrapped in the Err variant.
Maybe
errValue
A value to wrap in an Err if maybe is a Nothing.
Err
maybe
Nothing
The Maybe to convert to a Result.
Generated using TypeDoc
Transform a true-myth.maybe!Maybe Maybe into a
Result
.If the
Maybe
is a true-myth.maybe!Just Just, its value will be wrapped in the Ok variant; if it is a Maybe.Nothing Nothing theerrValue
will be wrapped in the Err variant.