Method Definition: def toList: List[A] Return Type: It returns a list consisting of all the elements of the set.
5 1 2 3 4
1 41 12 72 43 23