Kotlin List
-
[Kotlin] List,Set,MapKotlin/Collection 2021. 9. 5. 16:09
2021.08.26 - [Kotlin/Collection] - [Kotlin] Collection hierachy List In Kotlin, the default implementation of List is ArrayList Two lists are considered equal if they have the same sizes and structurally equal elements at the same positions. class Person(var name:String, var age:Int) fun main() { val bob = Person("Bob", 31) val people = listOf(Person("Adam", 20), bob, bob) val people2 = listOf(P..