Source
Prelude
- foldr (+) 0 [1, 2, 3] == 6
- foldr (+) 0 (1 : [2, 3]) == 6
- 1 + foldr (+) 0 [2, 3] == 6
- 1 + foldr (+) 0 (2 : [3]) == 6
- 1 + (2 + foldr (+) 0 [3]) == 6
- 1 + (2 + foldr (+) 0 (3 : [])) == 6
- 1 + (2 + (3 + foldr (+) 0 [])) == 6
- 1 + (2 + (3 + 0)) == 6
- 1 + (2 + 3) == 6
- 1 + 5 == 6
- 6 == 6
- True