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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -