Y
Hacker News
new
|
ask
|
show
|
jobs
by
jacques_chester
4682 days ago
Loops impose order. Maps do not.
Maps are in principle trivial to parallelise. That would be a nice feature.
1 comments
sixbrx
4681 days ago
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.
link