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
i wanted to chain multiple Results in a pipe & noticed that there is not a chain operator.
can it be done with something else in this lib or did i miss something? i am grateful for help
The text was updated successfully, but these errors were encountered:
perhaps something like this:
const chain = <A, B>(s: (input) => R.Result<A, B>) => (last: R.Result<A, B>) => { if (R.isOk(last)) { return s(last._0); } else { return last; } };
Sorry, something went wrong.
@alexn-s flatMap is what you're looking for :)
flatMap
No branches or pull requests
i wanted to chain multiple Results in a pipe & noticed that there is not a chain operator.
can it be done with something else in this lib or did i miss something?
i am grateful for help
The text was updated successfully, but these errors were encountered: