Hi,
As a side note, do you know that (as far as I understand your need),
what you're trying to achieve already exists and is called memoize :
http://clojure.org/api#toc366
HTH,
--
Laurent
2009/4/27 Tzach :
>
> Hi all
> I’m playing on a mechanism for function call results caching.
> This can
Hi all
I’m playing on a mechanism for function call results caching.
This can be used to improve performance in case of a complex or
remote function call.
The basic idea is as follow:
;; The cache is implement as a global map. Function arguments are the
key, the return result is the value.
(def