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
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