4 ms·
> the fact that internally it looks somewhat like IndexedMap is an implementation detail. It really is not. IndexMap was directly inspired by Python’s naturall
by masklinn 2y ago
> the fact that internally it looks somewhat like IndexedMap is an implementation detail.
It really is not. IndexMap was directly inspired by Python’s naturally ordered dicts. It’s spelled out right in the readme.
And while indexmap has weaker ordering guarantees for performance reasons (though also additional features aplenty), “ordermap” was revived as a wrapper which does conserve ordering on removal.