Skip to content

data.priority-map #29

Open
Open
@practicalli-johnny

Description

@practicalli-johnny

like a normal map you insert key/value pairs into it, but unlike a normal map when you call seq on it, it is guaranteed to return the key/value pairs in order by the value, which is the "priority" that you pick.
https://github.com/clojure/data.priority-map

Possible use cases
keep a ranking of users

  • could help to avoid using sort-by or reduce-kv each time

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions