Posts Tagged ‘clojure-golf’

Code Golf in Clojure

Posted: September 21, 2012 in Uncategorized
Tags: , ,

Recently enjoyed doing a bit of code golf – in particular solving the FizzBuzz test, which I managed to get down to 80 characters in Clojure (let me know if you can do better!)


(map #(let[t(mod% 3)z{0"Fizz"}]({0(str(z t)'Buzz)}(mod% 5)(z t%)))(range 1 101))

The experience inspired me to write down and share a few tips and tricks….

(more…)