W3cubDocs

/Kotlin

toMutableList

fun <T> Iterable<T>.toMutableList(): MutableList<T>
fun <T> Collection<T>.toMutableList(): MutableList<T>

Returns a MutableList filled with all elements of this collection.

fun <T> Array<out T>.toMutableList(): MutableList<T>
fun ByteArray.toMutableList(): MutableList<Byte>
fun ShortArray.toMutableList(): MutableList<Short>
fun IntArray.toMutableList(): MutableList<Int>
fun LongArray.toMutableList(): MutableList<Long>
fun FloatArray.toMutableList(): MutableList<Float>
fun DoubleArray.toMutableList(): MutableList<Double>
fun BooleanArray.toMutableList(): MutableList<Boolean>
fun CharArray.toMutableList(): MutableList<Char>

Returns a MutableList filled with all elements of this array.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-mutable-list.html