I\'m trying to write a function that returns a memoized recursive function in Clojure, but I\'m having trouble making the recursive function see its own memoized bindings. I
Here is the simplest solution:
(def fibo (memoize (fn [n] (if (< n 2) n (+ (fibo (dec n)) (fibo (dec (dec n))))))))