Scala Mutable SortedSet init() method
In Scala mutable collections, SortedSet init() method is utilized to find all the elements of the SortedSet except the last one. Method Definition: def init: SortedSet[A] Return Type: It returns all the elements of the SortedSet except the last one. Example #1: // Scala program of init() // method i