[Haskell-cafe] Some random newbie questions

Jorge Adriano Aires jadrian at mat.uc.pt
Sun Jan 9 15:11:41 EST 2005


On Friday 07 January 2005 12:03, Ketil Malde wrote:
> Naive use of foldl.  I tend to think the default foldl should be
> strict (ie. replaced by foldl') -- are there important cases where it
> needs to be lazy?

Hi, 
One simple example would be,
> reverse = foldl (flip (:)) []

J.A.


More information about the Haskell-Cafe mailing list