Skip to content
New issue

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

Give examples of chaining methods together. #3

Open
nlfiedler opened this issue Mar 11, 2020 · 0 comments
Open

Give examples of chaining methods together. #3

nlfiedler opened this issue Mar 11, 2020 · 0 comments

Comments

@nlfiedler
Copy link
Owner

For instance, processing a result can be done in a single expression and yield a final value by simply chaining the map(), mapErr() and unwrapOr() together.

An example for people coming from JavaScript would show how map() and mapErr() are like then() and catch() on Promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant