且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

哈斯克尔函数折叠器

更新时间:2022-10-15 09:19:15

The Haskell Wiki has some useful info about how to interpret foldr, including this image:

You can see how your expression expands to:

0 `k` (1 `k` ... (5 `k` 1)))))