Foldl has the space leak effect, and that's why foldl' has been recommended. <br><br>On Monday, July 23, 2012 9:44:59 PM UTC-5, Ivan Lazar Miljenovic wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">(Trying again using the real mailing list address rather than google groups)
<br>
<br>On 24 July 2012 12:37, Qi Qi &lt;<a href="mailto:qiqi789@gmail.com" target="_blank">qiqi789@gmail.com</a>&gt; wrote:
<br>&gt; Hi,
<br>&gt;
<br>&gt; I wonder why a foldr does not have a space leak effect?
<br>&gt; Any hints? Thanks.
<br>
<br>Why should it?
<br>
<br>Does it not depend on the function you're folding, the type of data
<br>you're folding over, how you use it, etc.?
<br>
<br>&gt;
<br>&gt; Qi
<br>&gt;
<br>&gt; ______________________________<wbr>_________________
<br>&gt; Haskell-Cafe mailing list
<br>&gt; <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>
<br>&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<wbr>mailman/listinfo/haskell-cafe</a>
<br>&gt;
<br>
<br>
<br>
<br>-- 
<br>Ivan Lazar Miljenovic
<br><a href="mailto:Ivan.Miljenovic@gmail.com" target="_blank">Ivan.Miljenovic@gmail.com</a>
<br><a href="http://IvanMiljenovic.wordpress.com" target="_blank">http://IvanMiljenovic.<wbr>wordpress.com</a>
<br>
<br>______________________________<wbr>_________________
<br>Haskell-Cafe mailing list
<br><a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>
<br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<wbr>mailman/listinfo/haskell-cafe</a>
<br></blockquote>