• (integer? n)
Returns true if n is an integer

1 Example top

  • user=> (integer? 1)
    user=> (integer? 1.0)
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:1303 top

(defn integer?
  "Returns true if n is an integer"
  {:added "1.0"
   :static true}
  (or (instance? Integer n)
      (instance? Long n)
      (instance? clojure.lang.BigInt n)
      (instance? BigInteger n)
      (instance? Short n)
      (instance? Byte n)))
Vars in clojure.core/integer?:
Used in 0 other vars

Comments top

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