by jrmoran · 14y ago · 0 comments
Also I went to the [calculator challenge](http://www.trybloc.com/courses/calculator#/1) and noticed this
# add(4, 2) => 8
def add(x, y)
end
Needless to say the comment should read `=> 6`.Also, since we are all geeks, here's my Clojure version
(defn buzziffy [a b x]
(cond (and (zero? (mod x a)) (zero? (mod x b))) "FizzBuzz"
(zero? (mod x a)) "Fizz"
(zero? (mod x b)) "Buzz"
:else x))
(println (apply str (map #(str (buzziffy 3 5 %) "\n")
(range 1 100))))No comments yet.