<div dir="ltr">I suspect the only reason it includes sum at all is that the Report says it must. Otherwise, well, it's a trivial fold and you can easily select the strictness you want by how you phrase the fold.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 14, 2018 at 1:35 PM Damian <<a href="mailto:damian.only@gmail.com">damian.only@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 14, 2018, 19:26 Tom Ellis <<a href="mailto:tom-lists-haskell-cafe-2017@jaguarpaw.co.uk" target="_blank">tom-lists-haskell-cafe-2017@jaguarpaw.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Aug 14, 2018 at 05:22:00PM +0200, Damian Nadales wrote:<br>
> Ok, so if understood the bottom line of the answers I got from Vanessa and<br>
> Hiromi the take away seems to be: if you're prototyping then stick to the<br>
> lazy version of sum, otherwise use more advanced data structures (Vectors<br>
> or Folds).<br>
<br>
I can't say I understand that bottom line.  A strict sum seems like a very<br>
obvious thing to want to feature very prominently in whatever set of<br>
utilities you choose to base your system on.<br></blockquote></div></div><div dir="auto">Any idea why Prelude does not ship a sum' version? (i.e. a strict version of sum) </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>