I tried to learn (get to know) Clojure by writing a library for cacheing (memoizing) function calls. I thought it would be a simple exercise, but it turned out to be not so easy at all, with lots of special cases.
https://github.com/clojure/clojure/blob/master/src/clj/cloju...
What were the special cases for your use case?