Scala BitSet &~() method with example
Scala Bitsets are sets of non-negative integers which are represented as variable-size arrays of bits packed into 64-bit words. The &~() method is utilised compute the difference of this bitset and another bitset by performing a bitwise “and-not”.
Method Definition: def &~()
Return Type: It returns a new bitset consisting of all elements that are not contained in given bitset.
BitSet(12, 41, 43, 72)
BitSet(41, 43, 72)