Skip to content

Instantly share code, notes, and snippets.

@k2nr k2nr/gist:4276794
Created Dec 13, 2012

Embed
What would you like to do?
define memoized function. It's useful for memoized recursion.
(defmacro defmemo
[name & fdecl]
`(def ~name
(memoize (fn ~fdecl))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.