3 ms·
Some languages don't have first-class functions that you would pass into a map or reduce function, which makes writing loops unavoidable. But even if you do us
by rnprince 9y ago
Some languages don't have first-class functions that you would pass into a map or reduce function, which makes writing loops unavoidable.
But even if you do use map/reduce all the time instead of loops, you're just saying the same thing I did in another way - unless you're doing it for the intellectual thrill of writing a call to map/reduce for the n+1th time.