(ns users) (use 'clojure.contrib.ns-utils) (def my-symbol 5) (vars users) => (my-symbol)
Please see http://clojure.org/special_forms#var
Returns true if v is of type clojure.lang.Var
Returns a Symbol with the given namespace and name.
Return true if x is a Symbol
Sets *ns* to the namespace named by name (unevaluated), creating it
Please see http://clojure.org/special_forms#def
Returns a map of all the mappings for the namespace.
(defmacro vars "Returns a sorted seq of symbols naming public vars in a namespace" [nsname] `(ns-vars (get-ns '~nsname)))
Comments top
No comments for vars. Log in to add a comment.