Returns a typed object array containing all of the elements of this primitive array.
Returns a typed object array containing all of the elements of this primitive array.
fun <reified T> Collection<T>.toTypedArray(): Array<T>
Returns a typed array containing all of the elements of this collection.
Allocates an array of runtime type T
having its size equal to the size of this collection and populates the array with the elements of this collection.
Returns a typed array containing all of the elements of this collection.
Allocates an array of runtime type T
having its size equal to the size of this collection and populates the array with the elements of this collection.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-typed-array.html