1.3.0 permalink Arrow_down_16x16

find-var

clojure.core

  • (find-var sym)
Returns the global var named by the namespace-qualified symbol, or
nil if no var with that name.

1 Example top

  • user=> (find-var 'map)
    IllegalArgumentException Symbol must be namespace-qualified  clojure.lang.Var.find (Var.java:150)
    user=> (find-var 'clojure.core/map)
    #'clojure.core/map
    user=> (find-var 'clojure.core/qwerty)
    nil
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1802 top

(defn find-var
  "Returns the global var named by the namespace-qualified symbol, or
  nil if no var with that name."
  {:added "1.0"
   :static true}
  [sym] (. clojure.lang.Var (find sym)))
Vars in clojure.core/find-var:
Used in 0 other vars

Comments top

No comments for find-var. Log in to add a comment.