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

feat: experimental error handling for Map #11

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shteou
Copy link
Owner

@shteou shteou commented Jan 24, 2022

A couple of attempts (if one can really be called an attempt) at
working with the Map function when the callback can produce an error

Short circuiting, and not, both seem like useful use cases, but the latter
requires some syntactic sugar to make it more palatable for daily usage.

Added an experimental MapWithErrors function which allows the
mapper function to return an error. Any error will return the
array so far and the error.
@shteou shteou marked this pull request as draft January 24, 2022 15:55
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

Successfully merging this pull request may close these issues.

1 participant