What is the difference between List and Array types?
It seems that the same operations (loops, filter expression, etc.) can be performed with them. Is there a difference in behavior or usage?
val names1 = listOf("Joe","Ben","Thomas") val names2 = arrayOf("Joe","Ben","Thomas") for (name in names1) println(name) for (name in names2) println(name)
kotlin
Daniel Hári Mar 28 '16 at 12:27 2016-03-28 12:27
source share