+ 1
What's the difference between Arrays, Lists, Sets and Maps in Kotlin?
How do I know which one to use?
1 Resposta
+ 2
Array: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html
List: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html
Set: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html
Map: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html
And ArrayList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/
There are some differences of their structures and the way to use.