Scala BitSet +(elems: Int*) 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 +(elems: Int*) method is utilised create a new set with additional elements, omitting duplicates.
Method Definition: def +()
Return Type: It returns a new set omitting duplicates.
BitSet(5, 6, 7, 55, 56)
BitSet(0, 5, 6, 7)