Scala SortedMap dropWhile() method with example
The dropWhile() method is utilized to delete the elements until the stated condition is satisfied.
Method Definition: def dropWhile(p: ((A, B)) => Boolean): SortedMap[A, B]
Return Type: It returns the longest suffix of elements of the stated SortedMap whose first element does not satisfies the predicate p.
Map(cs -> 2, for -> 3, geeks -> 5)