My ugly Clojure solution
Along with reading the Joy of Clojure and building toy Pedestal apps, I’ve been working through the exercises on 4Clojure. Each problem builds on the skills gained in the previous one, and you get to see the best solutions after you’ve submitted yours.
Occasionally I get the most elegant solution right off the bat. Most of the time I’m humbled. Sometimes I’m downright embarrassed:
This is one of the things I love about Clojure: if your code looks ugly, you’re probably looking at the problem wrong.
It’s problem 43, by the way. Get on it.
