3 ms·
I just tried, and ghci (i.e. Haskell) does not blow up when confronted with > let f n = if n > 0 then n + f (n - 1) else 0 > f 1000000
by eru 16y ago
I just tried, and ghci (i.e. Haskell) does not blow up when confronted with
> let f n = if n > 0 then n + f (n - 1) else 0
> f 1000000