Re: On redefining the global binding of a variable in a function

2009-10-04 Thread talk
What a lifesaver! Thanks a lot! On Oct 4, 2:58 pm, Meikel Brandmeyer wrote: > Hi, > > Am 04.10.2009 um 22:47 schrieb talk: > > >>   (defn cache > >>     "Replaces the function that the given variable refers to > >>     with a memoizing version of it." > >>     [fn-var] > >>     (??? fn-var (memo

Re: On redefining the global binding of a variable in a function

2009-10-04 Thread Meikel Brandmeyer
Hi, Am 04.10.2009 um 22:47 schrieb talk: (defn cache "Replaces the function that the given variable refers to with a memoizing version of it." [fn-var] (??? fn-var (memoize @fn-var))) Macros to the rescue: (defmacro cache "Replaces the function that the given name refers