You're viewing version 1.2.0 of symbol?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

symbol?

clojure.core

  • (symbol? x)
Return true if x is a Symbol

1 Example top

  • user=> (symbol? 'a)
    true
    user=> (symbol? 1)
    false
    user=> (symbol? :a)
    false
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:466 top

(defn symbol?
  "Return true if x is a Symbol"
  {:added "1.0"}
  [x] (instance? clojure.lang.Symbol x))
Vars in clojure.core/symbol?: defn instance?

Comments top

No comments for symbol?. Log in to add a comment.