Skip to content

proposal: flag: add All, AllSet iterators #65675

@earthboundkid

Description

@earthboundkid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions