Hacker News new | past | comments | ask | show | jobs | submit login

Loops impose order. Maps do not.

Maps are in principle trivial to parallelise. That would be a nice feature.




Agree, and a map also provides an "at a glance" assurance that I'm getting a transformed array of the same size. For loops take longer to discern what they're doing just because they could be doing almost anything, including early exit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: