Scala SortedMap init() method with example
The init() method is utilized to delete the last element of the SortedMap. It will return all the elements of the SortedMap except the last one. Method Definition: def init: SortedMap[A, B] Return Type: It returns all the elements of the SortedMap except the last one. Example #1: // Scala program of