The drop() method is utilized to delete the first ‘n’ elements.
Method Definition: def drop(n: Int): Map[A, B]
Return Type: It returns all the elements of the map except the first ‘n’ elements.
Map(for -> 3, cs -> 5)
Map(for -> 3)
So, both the identical keys are removed from the map.