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

proposal: flag: add All, AllSet iterators #65675

Open
earthboundkid opened this issue Feb 12, 2024 · 0 comments
Open

proposal: flag: add All, AllSet iterators #65675

earthboundkid opened this issue Feb 12, 2024 · 0 comments
Labels
Milestone

Comments

@earthboundkid
Copy link
Contributor

Proposal Details

The flag package currently has Visit and VisitAll iterators, but unfortunately, the iterators don't return bool, so they aren't compatible with the range func experiment. I propose to add All() iter.Seq[*Flag], AllSet() iter.Seq[*Flag], and methods on FlagSet. The name "AllSet" isn't ideal, and I'm open to suggestions for better names.

@gopherbot gopherbot added this to the Proposal milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Incoming
Development

No branches or pull requests

2 participants