Skip to content

Add documentation to Set to clarify that types need hash defined to serve as elements of a Set, not just isequal. #56020

Open
@sadish-d

Description

@sadish-d

Here's a possible phrasing:

Elements in a Set are unique, as determined by the elements' definition of isequal and hash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionsData structures holding multiple items, e.g. setsdocsThis change adds or pertains to documentationequalityIssues relating to equality relations: ==, ===, isequalhashing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions