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
Post a Comment