Skip to content

Adding .reverse() method to IndexMap & IndexSet #127

@linclelinkpart5

Description

@linclelinkpart5

Looking at the impl of OrderMapCore, .sort_by() saves the hash index, sorts the underlying entries vector, and then restores the hash index. Would this mean that a .reverse() method could be added to OrderedMapCore (and thus IndexMap/IndexSet)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions