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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -