-
Notifications
You must be signed in to change notification settings - Fork 38
Building
Fogus edited this page Jul 5, 2013
·
1 revision
-
Clone the core.memoize git repository or download its source archive
-
Run
mvn package
to generate a Jar file -
Run
mvn install
to install the Jar into your local Maven repository
To test that the build succeeded try:
mvn clojure:repl
This will launch a Clojure REPL. Try the following to exercise core.memoize:
(require '[clojure.core.memoize :as memo])
(def f (memo/memo #(do (Thread/sleep 5000) %)))
(f 42)
;; wait 5 seconds
;;=> 42
Subsequent calls of the f
function with the value 42
should return instantly.