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.
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.