Scala BitSet dropWhile() 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 drop() method is utilised to drop longest prefix of elements that satisfy a predicate.
Method Definition: def drop()
Return Type: It returns the longest suffix of collection whose first element does not satisfy p.
BitSet(1, 2, 3, 4, 5) BitSet(2, 3, 4, 5)
BitSet(15, 17, 21) BitSet(17, 21)