Changes for clojure.core/delay

zkim on Sun, 26 Sep 2010
;; In this example you can see that the first time the delay is forced
;; the println is executed however the second dereference shows just the
;; precomputed value.

user=> (def my-delay (delay (println "did some work") 100))
#'user/my-delay

user=> @my-delay
did some work
100

user=> @my-delay
100
gstamp on Mon, 02 Aug 2010
In this example you can see that the first time the delay is forced the println is executed however the second dereference shows just the precomputed value.

user=> (def my-delay (delay (println "did some work") 100))
#'user/my-delay
user=> @my-delay
did some work
100
user=> @my-delay
100