Hacker News new | ask | show | jobs
by gilfoyle 1034 days ago
Also that it maintains insertion order (since Ruby 1.9) opens up more use cases.
1 comments

Do you know any use cases, other than iteration? Would love to know any interesting ones. Thanks!
Yeah, you can use it to implement a simple (but not necessarily very performant) LRU: https://github.com/SamSaffron/lru_redux/blob/037ee594aded597...
Very cool, thanks for sharing!