We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Result.Err
Currently there's only
Result.withDefault : a -> Result x a -> a
which the issue suggests to replace with
Result.valueElseOnError/recover : (x -> a) -> Result x a -> a
which is lazy by default and makes it nearly impossible to forget error values.
additionally, an andThen but for the error case would be a common helpful operation
andThen
Result.onErrorTry/recoverTry : (x -> Result a y) -> Result x a -> Result y a
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently there's only
which the issue suggests to replace with
which is lazy by default and makes it nearly impossible to forget error values.
additionally, an
andThen
but for the error case would be a common helpful operationThe text was updated successfully, but these errors were encountered: