在Clojure里面避免这个问题的一个办法是使用special form: loop 和 recur 。另一个方法是使用trampoline ... 另外一种实现factorial 函数的方法是使用 reduce 函数。
確定! 回上一頁