Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
ClojureScript
cljs.core
defonce
defonce
macro
v1.7
cljs.core/defonce
Available in:
BB
CLJ
CLJS
(
defonce
[
x
init
]
)
defs name to have the root value of init iff the named var has no root value, else init is unevaluated
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Variables › Global Bindings
See Also
declare
def
get-validator
set-validator!
← defn-
defprotocol →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4