153
you are viewing a single comment's thread
view the rest of the comments
[-] idunnololz@lemmy.world 7 points 5 months ago

I personally don't think it's that obscure but I have never seen this used in production code that I didn't write: the linked hash map or ordered hash map.

[-] 3abas@lemmy.world 2 points 5 months ago

I've used it twice that I can recall.

[-] jesale@mastodon.social 1 points 5 months ago
[-] mcmodknower@programming.dev 2 points 5 months ago

Having a fixed iteration order, but an amortized O(1) access time.

For example if you have a map of uuids to players in a game, and want to use the same map for doing operations to all of them in the order they joined.

this post was submitted on 01 Jan 2026
153 points (100.0% liked)

Programming

27160 readers
299 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS