3 ms·
Loops impose order. Maps do not. Maps are in principle trivial to parallelise. That would be a nice feature.
by jacques_chester 13y ago
Loops impose order. Maps do not.
Maps are in principle trivial to parallelise. That would be a nice feature.
- sixbrx 13y agoAgree, 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.