In Clojure there's the classic way, with condp and mod. ... (mod n d))) (defn fizz-buzz [n] (condp = [(div-by? n 3) (div-by? n 5)] [true ...
確定! 回上一頁