functional-koans/clojure-koans — Issue #21: Final Recursion Koan Not Deep Enough
Author: lukearno
Created: 2012-01-13 19:46:38+00:00
State: open

I had to crank up the input of `factorial` to achieve `StackOverflowError` on the last koan in recursion.clj

@@ -48,4 +52,4 @@
(< 1000000000000000000000000N (factorial 1000N))

"But what happens when the machine limits you?"
- (< 1000000000000000000000000N (factorial 10000N)))
+ (< 1000000000000000000000000N (factorial 100003N)))

... and boom goes the dynamite.