[Haskell-cafe] why does a foldr not have a space leak effect?

Qi Qi qiqi789 at gmail.com
Tue Jul 24 04:52:39 CEST 2012


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 at 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 at haskell.org 
> > http://www.haskell.org/mailman/listinfo/haskell-cafe 
> > 
>
>
>
> -- 
> Ivan Lazar Miljenovic 
> Ivan.Miljenovic at gmail.com 
> http://IvanMiljenovic.wordpress.com 
>
> _______________________________________________ 
> Haskell-Cafe mailing list 
> Haskell-Cafe at haskell.org 
> http://www.haskell.org/mailman/listinfo/haskell-cafe 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120723/a5ca4e1f/attachment-0001.htm>


More information about the Haskell-Cafe mailing list