What really happens in memoize

less than 1 minute read

;; what_really_happens_in_momoize.clj

(def return-num (memoize
          (fn [num]
            (println "in return(" num ")" )
            num)))

(return-num 52) ;; excute more than once
(return-num 42) ;; excute more than once

Updated: