Anecdotally, programmers dislike "reduce"

41 points by aphaelion


nick4

I think it's because reduce is usually too powerful. Map and filter are very focused operations. But reduce is actually pretty powerful. In fact, it's so powerful, that if you take it's function signature, you can actually just make an equivalent list type: type List a = forall b. (a -> b -> b) -> b -> b! (Good exercises for the reader would be to implement things for that list)

I think you're usually better off defining or finding a better operation than using reduce directly if you can.