logoalt Hacker News

Zardoz84today at 7:03 AM0 repliesview on HN

for each is syntactic sugar for a while loop with an iterator. It will always be slower than the classic for index loop over the same collection/array.