On Tue, 2008-11-04 at 15:08 -0800, Daryoush Mehrtash wrote:
> 
> Are there cases (function or list) where the result of foldl (or
> foldr)would be different that foldl' (or foldr')?

There is no foldr'.  And yes, foldl and foldl' are different functions
and thus return different results on some inputs; however, you almost
always want foldl' (v. foldl).  See
http://www.haskell.org/haskellwiki/Stack_overflow

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to