class?

clojure.core

  • (class? x)
Returns true if x is an instance of Class

1 Example top

  • user=> (class? 1)
    false
    
    user=> (class? java.lang.String)
    true
    
    user=> (class? [])
    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:4745 top

(defn class?
  "Returns true if x is an instance of Class"
  {:added "1.0"
   :static true}
  [x] (instance? Class x))
Vars in clojure.core/class?:
Used in 0 other vars

Comments top

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