Convert a Result to a Maybe.Maybe Maybe.
Result
The converted type will be Maybe.Just Just if the Result is Ok or Maybe.Nothing Nothing if the Result is Err; the wrapped error value will be discarded.
The Result to convert to a Maybe
Maybe
Just the value in result if it is Ok; otherwise Nothing
Just
result
Ok
Nothing
Generated using TypeDoc
Convert a
Result
to a Maybe.Maybe Maybe.The converted type will be Maybe.Just Just if the
Result
is Ok or Maybe.Nothing Nothing if theResult
is Err; the wrapped error value will be discarded.