Haskell dependent, independent variables in lambda function as applied to foldr

后端 未结 0 364
再見小時候
再見小時候 2021-01-18 01:30

Given

> foldr (+) 5 [1,2,3,4]
15

this second version

foldr (\\x n -> x + n) 5 [1,2,3,4]

also returns

相关标签:
回答
  • 消灭零回复
提交回复
热议问题