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

Official Documentation

Add notes
Arities
==================================================
   [x y]
   [x y & more]

Docstring
==================================================
  Bitwise exclusive or

Source

(defn bit-xor
  "Bitwise exclusive or"
  {:inline (nary-inline 'xor)
   :inline-arities >1?
   :added "1.0"}
  ([x y] (. clojure.lang.Numbers xor x y))
  ([x y & more]
    (reduce1 bit-xor (bit-xor x y) more)))

Example 1

Edit
;; set bits to 1 where bits of the arguments are different
(bit-xor 2r1100 2r1001) 
;; => 5

;; 5 = 2r0101

Uses on crossclj