summaryrefslogtreecommitdiff
path: root/src/boot.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.clj')
-rw-r--r--src/boot.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/boot.clj b/src/boot.clj
index a842d933..d9b12f8e 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -354,7 +354,9 @@
(spread (cons item more)))
(defmacro delay
- {:private true}
+ "Takes a body of expressions and yields a function than will invoke
+ the body only the first time it is called, and will cache the result
+ and return it on all calls"
[& body]
(list 'new 'clojure.lang.Delay (list* `fn [] body)))