3 ms·
Reduce introduces state (accumulator), unlike map/filter which normally are used for immutability. I use both, but do not like reduce at all. It's harder to r
by yipinwong 18d ago
Reduce introduces state (accumulator), unlike map/filter which normally are used for immutability.
I use both, but do not like reduce at all. It's harder to read, yes.
But I see the point of using them all.