Re:FP techniques that will help you write better JavaScript
by ReleaseCandidat on Friday February 11, 2022 @04:58AM
(#30299438)
Of course, that wasn't meant seriously. That's why i like `for_each` (or `iter` or whatever it's called) as 'third' function too, because it makes it clear you're doing side-effects.
There is utility in communicating whether you're working with a catamorphism vs a homomorphism. Code is written for humans, after all.