I see how this is done on
(foldl * 1 '(1 2 3 4 5)) == 120
(foldr * 1 '(1 2 3 4 5)) == 120
but i cant figure out how it gets 2 for (foldl - 1 '(1 2 3 4 5)) == 2
I would think (foldl - 1 '(1 2 3 4 5)) would be ((((1-1) -2) -3) -4) -5), a negative number. What did I miss?
I can understand why (foldl + 1 '(1 2 3 4 5)) == 16
source
share