[Haskell-cafe] curious about sum

Keith Sheppard keithshep at gmail.com
Sat Jun 13 10:03:05 EDT 2009


Is there any reason that sum isn't strict? I can't think of any case
where that is a good thing.

Prelude> sum [0 .. 1000000]
*** Exception: stack overflow

-Keith
-- 
keithsheppard.name


More information about the Haskell-Cafe mailing list