You're viewing version 1.2.0 of bit-not. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (bit-not x)
Bitwise complement

1 Example top

  • user=> (bit-not 2r0111)
    user=> (bit-not -2r1000)
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1024 top

(defn bit-not
  "Bitwise complement"
  {:inline (fn [x] `(. clojure.lang.Numbers (not ~x)))
   :added "1.0"}
  [x] (. clojure.lang.Numbers not x))
Vars in clojure.core/bit-not: defn not
Used in 0 other vars

Comments top

No comments for bit-not. Log in to add a comment.