Scala Queue dropRight() method with example
The dropRight() method is utilized to drop the last 'n' elements of the queue. Method Definition: def dropRight(n: Int): Queue[A] Return Type: It returns a new queue that consists of all the elements except the last 'n' elements. Example #1: // Scala program of dropRight() // method // Import Queue