Offtopic: Java doesn't support tail-recursive calls, so your fib will blow up the stack for larger ns. Use recur for recursion.
I think the tour problem is the (def m-fib (memoize fib)). You create a new memoized function m-fib, while fib will internally call the non-memoized fib. You have to do something like: (binding [fib (memoize fib)] (fib 42)). However, this will break if you use recur instead of recursive calls to fib. On Tue, Jul 20, 2010 at 10:11 PM, Aravindh Johendran <ajohend...@gmail.com> wrote: > (defn m-fib (memoize fib)) -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en