Skip to content

clojure.core/delay

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 4 Runnable: 3
([& body])

Takes a body of expressions and yields a Delay object that will invoke the body only the first time it is forced (with force or deref/@), and will cache the result and return it on all subsequent force calls. See also - realized?

Examples

by gstamp on . May have evaluation errors.
by jafingerhut on
by zk on
by humorless on

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.