2 ms·
> I prefer this because it means I don’t have to decide whether I need an ordered map or an unordered map. Well only if you happen to insert your elements in o
by IshKebab 2y ago
> I prefer this because it means I don’t have to decide whether I need an ordered map or an unordered map.
Well only if you happen to insert your elements in order. If you want a proper ordered map like `std::map` in C++ or `BTreeMap` in Rust then you are out of luck (at least in Python and Javascript).
- jlarocco 2y agoYou can always use a library or roll your own.