In Scala mutable collections, SortedSet toSeq() method is utilized to return a seq consisting of all the elements of the SortedSet.
Method Definition: def toSeq: Seq[A]
Return Type: It returns a seq consisting of all the elements of the SortedSet.
11 12 13 14
2 3 4 11 43 72
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.