bit-not

function/macrosince v0.0-927 clojure.core/bit-notEdit
(bit-not x)

Details:

Bitwise complement. Same as ~x in JavaScript.


Examples:

Bits can be entered using radix notation:

(bit-not 2r1100)
;;=> -13

Same numbers in decimal:

(bit-not 12)
;;=> -13

Source docstring:
Bitwise complement
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn bit-not
  [x] (cljs.core/bit-not x))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro ^::ana/numeric bit-not [x]
  (core/list 'js* "(~ ~{})" x))