The drop() method is utilized to delete the first ‘n’ elements or to return all elements except first ‘n’ elements.
Method Definition: def drop(n: Int): SortedSet[A]]
Return Type: It returns all elements except first ‘n’ elements.
3 4 5
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.