Hello Damian,<div><br></div><div>If anything, I would expect this function to be called sum'. Hayoo knows just a handful of such functions, only one of which does what you want:</div><div><br></div><div><a href="http://hackage.haskell.org/package/combinat-0.2.8.2/docs/Math-Combinat-Helper.html#v:sum-39-">http://hackage.haskell.org/package/combinat-0.2.8.2/docs/Math-Combinat-Helper.html#v:sum-39-</a></div><div><br></div><div>This doesn't imply that there is no such function at all: the name could be different or Hayoo might have troubles to find it.</div><div><br></div><div>--</div><div>Best, Artem<br><br><div class="gmail_quote"><div dir="ltr">On Tue, 14 Aug 2018, 12:10 Damian Nadales, <<a href="mailto:damian.nadales@gmail.com">damian.nadales@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="ltr"><div>I thought the answer would be easy to find on the internet, but I cannot find any package that features a strict version of `sum`. <br></div><div><br></div><div>Do you know if such a function is defined anywhere? (like a custom prelude for instance)</div><div><br></div><div>I know it is trivial to define, but I would prefer not to repeat myself (and somebody else).</div><div><br></div><div>Thanks!<br></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></div>