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 create a new collection from this collection by removing all elements of another collection.
Method Definition: def –()
Return Type: It returns a new collection that contains all elements of the current collection except elems.
BitSet(0, 1, 2, 3)
BitSet(1, 2, 3)