-
Notifications
You must be signed in to change notification settings - Fork 272
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 a FilterMap operator #355
Comments
I think |
Heh, sorry about my (deleted) posts, I'm used to seeing your messages in the DDlog repo :) But yeah, I use flat_map to express filter_map in DD. |
Implementation-wise yes, |
This'd be a nice ergonomic tweak, an operator in the style of
Iterator::filter_map()
would be really great. Currently there's a somewhat strange workaround using.flat_map()
, e.g.and while this would functionally be nearly identical, the
FilterMap
operator could likely specialize somewhat since it only has to handle a single output valueThe text was updated successfully, but these errors were encountered: