Method Definition: def toArray: Array[A] Return Type: It returns an array consisting of all the elements of the set.
1 2 7 3 4
1 41 12 72 43 23