bit-or is a Clojure function that combines the corresponding bits of two or more integer arguments using bitwise disjunction. It accepts byte, short, int, or long values and returns a java.lang.Long. section 3.2.3
Listing 3.9. → bitwise, bit-processing
(bit-not [x]) (bit-and [x y & more]) (bit-or [x y & more]) (bit-xor [x y & more]) (bit-and-not [x y & more]) (bit-clear [x n]) (bit-set [x n]) (bit-flip [x n]) (bit-test [x n]) (bit-shift-left [x n]) (bit-shift-right [x n]) (unsigned-bit-shift-right [x n])
The signature shows that bit-or requires at least two arguments and accepts any number of additional operands. section 3.2.3
Combining bit patterns
bit-or can be compared with bit-xor over the same inputs: (map bin ((juxt bit-or bit-xor) 2r1 2r1)) returns ("00000001" "00000000"). Identical set bits remain set under OR but cancel under XOR. section 3.2.3
