Y
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
software_writer
1034 days ago
Do you know any use cases, other than iteration? Would love to know any interesting ones. Thanks!
link
byroot
1034 days ago
Yeah, you can use it to implement a simple (but not necessarily very performant) LRU:
https://github.com/SamSaffron/lru_redux/blob/037ee594aded597...
link
software_writer
1032 days ago
Very cool, thanks for sharing!
link