logo       

Re: Some random newbie questions: msg#00121

lang.haskell.cafe

Subject: Re: Some random newbie questions

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise