j
k
j a
j l
keithshep:
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
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
It is strict when subject to strictness analysis (try compiling it). -- Don
Back to the thread
Back to the list