Feb 13, 2008
Left folds are far more common in strict languages because they’re tail-recursive; right folds use stack space. A right fold is more natural in lazy languages like Haskell because it builds fewer (by 50%) thunks than the corresponding left fold.

Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.

archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)