You're viewing version 1.2.0 of find-var. The latest stable version of Clojure Core is 1.3.0.
1.2.0 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:1534 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"}
 [sym] (. clojure.lang.Var (find sym)))
Vars in clojure.core/find-var: defn find
Used in 2 other vars open-url-in-swing when-feature

Comments top

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