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 to create new set with a given element removed from this set.
Method Definition: def -(elem)
Return Type: It returns new set that contains all elements of this set but that does not contain elem
Elements in Bitset are = BitSet(0, 1, 2, 3) BitSet(1, 2, 3)
Elements in Bitset are = BitSet(0, 1, 2, 3) BitSet(0, 2)