We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1404485 commit 264eb2bCopy full SHA for 264eb2b
src/main/clojure/cljs/core.clj
@@ -1394,11 +1394,12 @@
1394
[& body]
1395
`(new cljs.core/LazySeq nil (fn [] ~@body) nil nil))
1396
1397
-(defmacro delay [& body]
+(defmacro delay
1398
"Takes a body of expressions and yields a Delay object that will
1399
invoke the body only the first time it is forced (with force or deref/@), and
1400
will cache the result and return it on all subsequent force
1401
calls."
1402
+ [& body]
1403
`(new cljs.core/Delay (fn [] ~@body) nil))
1404
1405
(defmacro with-redefs
0 commit comments