RosettaCodeData/Task/Bitwise-operations/Clojure/bitwise-operations.clj

8 lines
133 B
Clojure

(bit-and x y)
(bit-or x y)
(bit-xor x y)
(bit-not x)
(bit-shift-left x n)
(bit-shift-right x n)
;;There is no built-in for rotation.