Skip to content

List supported units #88

@ljharb

Description

@ljharb

Especially if this list changes over time, but also regardless, i think there should be a way to list all of the supported units.

Ideally i think it’d be a function that produces a Map for cheap lookups (keys are a supported unit, values are an array of other units that it can convert to/from), but I’m sure there’s lots of ways to design it.

(It also occurred to me that a predicate “can convert between” might be useful, but you get that for free with the above data structure)

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