Re:It never makes sense to use foldl on lists in Haskell (2019)
by pansa2 on Saturday March 21, 2020 @04:31AM
(#22645330)
Although `foldr` accumulates the result right-to-left, it processes the list left-to-right, which allows it to short-circuit.
`reduceRight` processes and accumulates right-to-left, so it doesn’t have the short-circuiting ability of `foldr`.
I don't understand how that's different in practice. Can you elaborate?