Scala BitSet &(GenSet) 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 &~(GenSet) method is utilised compute the difference of this bitset and another bitset by performing a bitwise “and”.
Method Definition: def &(GenSet)
Return Type: It returns a new bitset consisting of all elements that are that are both in this bitset.