Skip to content

There should be a way of getting the name of an enum value in constant time #29

@AFatNiBBa

Description

@AFatNiBBa

In #8 an Enum.getName() API was mentioned, but was then removed in favor of using Iterator.prototype.find() on the enum entries, that's not optimal since it requires a linear search.
I propose adding back the Enum API, which would also be useful for future extensions of the enum feature

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