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

De Morgan's law assist on all and any #15694

Closed
ronnodas opened this issue Sep 30, 2023 · 0 comments · Fixed by #15700
Closed

De Morgan's law assist on all and any #15694

ronnodas opened this issue Sep 30, 2023 · 0 comments · Fixed by #15700
Labels
A-assists C-feature Category: feature request

Comments

@ronnodas
Copy link

The assist to apply de Morgan's law should work for Iterator::all and Iterator::any. For example, it should turn !iter.any(|x| predicate(x)) to iter.all(|x| !predicate(x)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-feature Category: feature request
Projects
None yet
2 participants