WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 33759554

(no title)

matiasfernandez | 3 years ago

Pop and swap while iterating is definitely a useful feature. You can also queue removals up and do the pop and swap all together on a cleanup pass (snippet below). That said, most people don't code this way, so yeah, useful for sure.

https://github.com/matias-eduardo/conway/blob/2496472b0018bb...

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com