[<<][haskell][>>][..]
Tue Aug 25 12:46:33 CEST 2015

Turn left folds into right folds (corecursion)

Basically, left folds don't work well in a lazy language because they
build a tower of thunks[1].  Right folds are easy, and they can
operate on infinite streams as well.

[1] http://stackoverflow.com/questions/8235797/is-foldl-ever-preferable-to-its-strict-cousin-foldl



[Reply][About]
[<<][haskell][>>][..]