store/[org.clojure/clojure "1.8.0"] clj::clojure.core/bit-test

Official Documentation

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

Docstring
==================================================
  Test bit at index n

Source

(defn bit-test
  "Test bit at index n"
  {:added "1.0"
   :static true}
  [x n] (. clojure.lang.Numbers testBit x n))

Example 1

Edit
(bit-test 2r1001 0)
;; => true 

(bit-test 2r1001 1)
;; => false 

(bit-test 2r1001 7)
;; => false

Uses on crossclj