Scala TreeSet dropRight() method with example
In Scala TreeSet class, the dropRight() method is utilized to drop the last ânâ elements of the TreeSet. Method Definition: def dropRight(n: Int): TreeSet[A] Return Type: It returns a new TreeSet that consists of all the elements except the last ânâ elements. Example #1: // Scala program of dropRigh