Skip to content

reflect: add Type.CanSeq/CanSeq2 and Value.Seq/Seq2 methods #66056

Closed
@earthboundkid

Description

@earthboundkid

Proposal Details

As mentioned in #61897 (comment), it can be tricky to determine if a type is rangeable via reflection. There should be an efficient way to do the check and an efficient way to range over a reflect.Value. The immediate need for this is because of rangefuncs, but this would also be useful for slices, maps, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions