1.2.0 permalink Arrow_down_16x16
  • (defonce- name expr)
  • (defonce- name expr doc)
Same as defonce but yields a private definition

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/def.clj:59 top

(defmacro defonce-
  "Same as defonce but yields a private definition"
  ([name expr]
     (list `defonce (with-meta name (assoc (meta name) :private true)) expr))
  ([name expr doc]
     (list `defonce (with-meta name (assoc (meta name) :private true :doc doc)) expr)))
Vars in clojure.contrib.def/defonce-: assoc defmacro doc list meta name with-meta defonce
Used in 0 other vars

Comments top

No comments for defonce-. Log in to add a comment.