1.3.0 permalink Arrow_down_16x16

bit-and-not

clojure.core

  • (bit-and-not x y)
  • (bit-and-not x y & more)
Bitwise and with complement

1 Example top

  • user=> (bit-and-not 2r1100 2r1001) ; (and X (not Y))
    4
    ;; 4 = 2r0100
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:1255 top

(defn bit-and-not
  "Bitwise and with complement"
  {:inline (nary-inline 'andNot)
   :inline-arities >1?
   :added "1.0"
   :static true}
  ([x y] (. clojure.lang.Numbers andNot x y))
  ([x y & more]
    (reduce1 bit-and-not (bit-and-not x y) more)))
Vars in clojure.core/bit-and-not:
Used in 0 other vars

Comments top

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