defunbound

clojure.contrib.def

  • (defunbound name)
  • (defunbound name doc)
Defines an unbound var with optional doc string

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:32 top

(defmacro defunbound
  "Defines an unbound var with optional doc string"
  ([name]
     (list `def name))
  ([name doc]
     (list `def (with-meta name (assoc (meta name) :doc doc)))))
Vars in clojure.contrib.def/defunbound: assoc defmacro doc list meta name with-meta
Used in 0 other vars

Comments top

No comments for defunbound. Log in to add a comment.