toList

open fun <T> toList(array: Array<T>): List<T>

Returns a copy of the array as a list.

This is not supported for arrays of primitive data types.


open fun <T> toList(collection: Collection<T>): List<T>
open fun toList(array: Array<Int>): List<Integer>