开发者

Examples of elegant, concise code in Clojure

I'm loo开发者_开发知识库king 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.


There are loads at learnclojure on twitter. :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜