toList

Common
JVM
JS
Native
1.0
fun <T> Array<out T>.toList(): List<T>
(source)
fun ByteArray.toList(): List<Byte>
(source)
fun ShortArray.toList(): List<Short>
(source)
fun IntArray.toList(): List<Int>
(source)
fun LongArray.toList(): List<Long>
(source)
fun FloatArray.toList(): List<Float>
(source)
fun DoubleArray.toList(): List<Double>
(source)
fun BooleanArray.toList(): List<Boolean>
(source)
fun CharArray.toList(): List<Char>
(source)
fun <T> Iterable<T>.toList(): List<T>
(source)

Returns a List containing all elements.

Common
JVM
JS
Native
1.0
fun <K, V> Map<out K, V>.toList(): List<Pair<K, V>>
(source)

Returns a List containing all key-value pairs.