Y
Hacker News
new
|
ask
|
show
|
jobs
by
matiasfernandez
1295 days 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...