/sortmap

Sortmap is map where the keys keep the order that they're added.

Primary LanguageGo

Sortmap

Sortmap is map where the keys keep the order that they're added.

Usage

m := sortmap.New[int,string]()
m.Set(2, "a")
m.Set(1, "b")

m.Keys() // 2,1

m.Get(1) // b