[Haskell-cafe] foldl vs foldl'

Derek Elkins derek.a.elkins at gmail.com
Wed Nov 5 17:48:49 EST 2008

On Wed, 2008-11-05 at 10:01 -0800, Daryoush Mehrtash wrote:
> Lets assume we don't have undefined in the list, are there functions
> (or properties in the function) that would cause foldl to have
> different results than foldl'?

The only difference in the definition of foldl and foldl' is a seq so it
can only differ due to bottoms as far as semantics is concerned.

More information about the Haskell-Cafe mailing list