Scala Mutable SortedSet size() method
In Scala mutable collections, SortedSet size() method is utilized to find the number of elements in the SortedSet. Method Definition: def size: Int Return Type: It returns the number of elements in the SortedSet. Example #1: // Scala program of size() // method import scala.collection.mutable.Sorted