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 <<a href="mailto:qiqi789@gmail.com" target="_blank">qiqi789@gmail.com</a>> wrote:
<br>> Hi,
<br>>
<br>> I wonder why a foldr does not have a space leak effect?
<br>> 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>>
<br>> Qi
<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>>
<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>