Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gilfoyle
· 3y ago · 0 comments
Also that it maintains insertion order (since Ruby 1.9) opens up more use cases.
Comments
[–]
software_writer
3y ago
Do you know any use cases, other than iteration? Would love to know any interesting ones. Thanks!
[–]
byroot
3y ago
Yeah, you can use it to implement a simple (but not necessarily very performant) LRU:
https://github.com/SamSaffron/lru_redux/blob/037ee594aded597...
[–]
software_writer
3y ago
Very cool, thanks for sharing!