1
2
3
4
5
6
7
(defn testh [n]                                                               
   (if (zero? n)                                                               
     (list n)                                                                
     (cons n (testh (dec n)))))

> (testh 10000)
=> [Thrown class java.lang.StackOverflowError]