我正在處理clojure中的遞歸,我並不真正瞭解它。 ... a b)))) #'user/gcd user=> (reduce (fn[acc n] (if (not= 0 (mod acc n)) (* acc (/ n (gcd n acc))) acc)) 1 ...
確定! 回上一頁