ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

defonce

clojure.core

Available since 1.0 (source)
  • (defonce name expr)
defs name to have the root value of the expr iff the named var has no root value,
else expr is unevaluated