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

add fallible variant to filter and map #26

Open
YouKnow-sys opened this issue Mar 12, 2024 · 1 comment
Open

add fallible variant to filter and map #26

YouKnow-sys opened this issue Mar 12, 2024 · 1 comment

Comments

@YouKnow-sys
Copy link

It'll be good and useful if methods like filter, filter_map and their async version had a fallible version too.
sometimes we want filter or map some data in our code based on fallible source (let say a database for example) currently we can't check for errors when using these methods and we can only relay on fully skipping if a error happened, this is not ideal, so having functions like try_filter and try_map could be useful.

@syrtcevvi
Copy link
Member

If so, it should be started after this PR, it slightly changes the filter_map and other functions

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

2 participants