What does Clojure’s bit-and-not do? -


from docs:

bit-and-not

function

usage: (bit-and-not x y)        (bit-and-not x y & more)  bitwise , complement 

added in clojure version 1.0

clojure's other bit- functions make sense me, don't understand one.

it equivalent this:

(bit-and x (bit-not y))

this function can used subset tests. set a (represented bitmask) subset of set b if , if (bit-and-not b) zero.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -