toList

fun <T, D : Dimension> MultiArray<T, D>.toList(): List<T>

Returns a List containing all elements.