Left and Right Folding over an Infinite list

前端 未结 5 1527
北荒
北荒 2020-12-07 14:03

I have issues with the following passage from Learn You A Haskell (Great book imo, not dissing it):

One big difference is that right folds work on i

5条回答
  •  眼角桃花
    2020-12-07 14:49

    There is good plain explanation on Haskell wiki. It shows step-by-step reduction with different types of fold and accumulator functions.

提交回复
热议问题