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

Official Documentation

Add notes
Arities
==================================================
   [n]

Docstring
==================================================
  Returns true if n is even, throws an exception if n is not an integer

Source

(defn even?
  "Returns true if n is even, throws an exception if n is not an integer"
  {:added "1.0"
   :static true}
   [n] (if (integer? n)
        (zero? (bit-and (clojure.lang.RT/uncheckedLongCast n) 1))
        (throw (IllegalArgumentException. (str "Argument must be an integer: " n)))))

Example 1

Edit
(filter even? (range 10))
;; => (0 2 4 6 8)

Example 2

Edit
(even? 2)
;; => true

(even? 1)
;; => false

Uses on crossclj