Scala SortedMap copyToArray() method with example
The copyToArray() method is utilized in copying pair of keys of the SortedMap to an Array. Method Definition: def copyToArray(xs: Array[(A, B)]): Unit Return Type: It returns the keys of the SortedMap to an array. Example #1: // Scala program of copyToArray() // method import scala.collection.immuta