toList

fun toList(): List<T>

Return

a List containing all elements.