clojure.core/defonce¶
defs name to have the root value of the expr iff the named var has no root value, else expr is unevaluated
Examples¶
Note by lnostdal¶
Note that this isn't thread safe. I.e. EXPR for the same NAME can be evaluated more than once.
See also¶
- clojure.core/def (4)
Content from the matching ClojureDocs page, with authors credited on each contribution.