`foldl` vs `foldr`: matrix multiplication order

They do fold from the left or right, traversing the list in different orders. But they do it by changing associativity, not by commuting terms. This is the standard terminology for “fold” operations.

2 Likes