Foldl has the space leak effect, and that's why foldl' has been recommended.
On Monday, July 23, 2012 9:44:59 PM UTC-5, Ivan Lazar Miljenovic wrote:
(Trying again using the real mailing list address rather than google groups)
On 24 July 2012 12:37, Qi Qi <qiqi789@gmail.com> wrote:
> Hi,
>
> I wonder why a foldr does not have a space leak effect?
> Any hints? Thanks.
Why should it?
Does it not depend on the function you're folding, the type of data
you're folding over, how you use it, etc.?
>
> Qi
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
--
Ivan Lazar Miljenovic
Ivan.Miljenovic@gmail.com
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe