G'day all.
Quoting Henning Thielemann <lemming@henning-thielemann.de>:
... which got the same name, too, namely 'foldl'.
You mean foldr. The place of foldl is a bit tricky, but in this case
it requires that the monoid be Abelian.
Cheers,
Andrew Bromage