I'm looking for enlightening examples of concise and elegant code in Clojure - mainly to learn new techniques and improve my own style.
Can you offer any nuggets of pure genius?
Basically everything Nurullah Akkaya posts:
http://nakkaya.com/
Definitely some of the most imaginative Clojure examples around. Don't blame me for all the time you'll spend reading his stuff... ;-)
This is fun:
(= (sort "eleven plus two") (sort "twelve plus one"))
This evaluates to true because "eleven plus two" is an anagram of "twelve plus one"
More fun than useful.
Ring is an excellent example - very idiomatic and elegant code there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With