比如Fibonacci 数列,直接用递归可以这么写: (defn fib [n] (condp = n 0 1 1 1 (+ (fib (dec n)) (fib (- n 2))))) 可是,因为在递归过程…
確定! 回上一頁