Source
Prelude
- foldr (\ _ n -> 1 + n) 0 ['a', 'b', 'c']
- foldr (\ _ n -> 1 + n) 0 ('a' : ['b', 'c'])
- (\ _ n -> 1 + n) 'a' (foldr (\ _ n -> 1 + n) 0 ['b', 'c'])
- 1 + foldr (\ _ n -> 1 + n) 0 ['b', 'c']
- 1 + foldr (\ _ n -> 1 + n) 0 ('b' : ['c'])
- 1 + (\ _ n -> 1 + n) 'b' (foldr (\ _ n -> 1 + n) 0 ['c'])
- 1 + (1 + foldr (\ _ n -> 1 + n) 0 ['c'])
- 1 + (1 + foldr (\ _ n -> 1 + n) 0 ('c' : []))
- 1 + (1 + (\ _ n -> 1 + n) 'c' (foldr (\ _ n -> 1 + n) 0 []))
- 1 + (1 + (1 + foldr (\ _ n -> 1 + n) 0 []))
- 1 + (1 + (1 + 0))
- 1 + (1 + 1)
- 1 + 2
- 3