Yes. I was suspecting clojure has something. That's why I said "Maybe
reinventing the wheel here".
Thank you
On 28/04/13 23:27, Leonardo Borges wrote:
As a matter of fact Clojure core has it :)
Check it out: http://clojuredocs.org/clojure_core/clojure.core/memoize
Leonardo Borges
www.leonardoborges.com <http://www.leonardoborges.com>
On Mon, Apr 29, 2013 at 1:51 PM, Jorge Urdaneta
<jorge.urdan...@gmail.com <mailto:jorge.urdan...@gmail.com>> wrote:
Hi,
I started a library called memorize-clj
https://github.com/jorgeu/memorize-clj
It provides a function "memorize" that take a function and cache
its results using
guava cache. Of course the function must be pure and the
parameters should be
easy to compare and get a hashcode.
Maybe I'm reinventing the wheel here but it was fun to build anyway.
I saw this feature in Groovy and couldn't found anything
equivalent for Clojure.
--
Jorge Urdaneta
--
--
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
<mailto: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
<mailto:clojure%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- You received this message because you are subscribed to the
Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to clojure+unsubscr...@googlegroups.com
<mailto:clojure%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
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
---
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Jorge Urdaneta
--
--
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
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.