indexmap-rs / indexmap

A hash table with consistent order and fast iteration; access items by key or sequence index
https://docs.rs/indexmap/
Other
1.71k stars 150 forks source link

`impl Index<usize> for Keys` #285

Closed cuviper closed 9 months ago

cuviper commented 12 months ago

While Index<usize> for IndexMap accesses a map's values, indexing through IndexMap::keys offers an alternative to access a map's keys instead.

Resolves #284.