Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
marvy
· 5y ago · 0 comments
Ooh nice! I didn't think of that! Since appending to an array is cheap, you can just move-to-end instead of move-to-front, and then iterate in "reverse" order, so from the outside everything seems to Just Work.
Comments
No comments yet.
Better HN