[Haskell-cafe] Is there a library that has a strict version of `sum`?

Imants Cekusins imantc at gmail.com
Tue Aug 14 19:17:44 UTC 2018


>  I have to sum up values in different lists, and as soon as I try this
with large lists the memory usage blows up.

did you try splitting the list in chunks and summing those chunks?

there is this chunksOf function:
http://hackage.haskell.org/package/containers-0.6.0.1/docs/Data-Sequence.html#g:9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180814/1cd245cf/attachment.html>


More information about the Haskell-Cafe mailing list