store/[org.clojure/clojure "1.8.0"] clj::clojure.core/class

Official Documentation

Add notes
Arities
==================================================
   [x]

Docstring
==================================================
  Returns the Class of x

Source

(defn class
  "Returns the Class of x"
  {:added "1.0"
   :static true}
  ^Class [^Object x] (if (nil? x) x (. x (getClass))))

Example 1

Edit
(class 1)
;; => java.lang.Integer

(class [1 2 3])
;; => clojure.lang.PersistentVector

(class (String. "foo"))
;; => java.lang.String

Uses on crossclj