2 ms·
Yeah, I agree with that. Especially reduce/fold, which I find is almost always better written as loop. Filter would be a good example of the opposite for me: al
by nicoburns 4y ago
Yeah, I agree with that. Especially reduce/fold, which I find is almost always better written as loop. Filter would be a good example of the opposite for me: almost always much clearer written functionally.
- jamincan 4y agoI find I frequently use a combination - use map/filter to setup an iterator, and then reduce it in a loop.