Hacker News new | ask | show | jobs
by kbenson 18 days ago
So, it's just a while loop in a for loop's clothing? That's not going to be confusing for people at all...
1 comments

No, it's a for loop that happens to include an unrelated variable declaration.
Ah, I see. The increment is so they can manually handle the included feature of the other cases, which number of the iteration you're on. Nice that it will automatically loop across a collection, annoying that they couldn't go the whole way and you need to deal with it manually.