Skip to main content

def

special-formv1.7

cljs.core/def

Available in:BBCLJCLJS
(def [symbol doc-string? init?])
Creates and interns a global var with the name of symbol in the current namespace (*ns*) or locates such a var if it already exists. If init is supplied, it is evaluated, and the root binding of the var is set to the resulting value. If init is not supplied, the root binding of the var is unaffected.

No examples yet. Be the first to add one!