Arc Forum
new
|
comments
|
leaders
|
submit
login
4 points
by
skenney26
6064 days ago |
link
|
parent
It looks like the final left paren in hyfac is misplaced. It needs to be before the call to fac. Also, unless you explicity return y, hyfac will just return nil.
(def hyfac (n) (let y 1 (for x 1 (+ n 1) (= y (* y (fac n)))) y))