Collection
[Kotlin] List, Set, Map, Collection Operations
Collections 1. List - ordered collection - index로 원소에 접근 가능 listOf(1,2,2) --> [1,2,2] 2. Set - unique elements setOf(1,2,2) ---> [1,2] 3. - key-value pairs - 동일한 key에 대해 하나의 value만 가짐 mapOf("first" to 1, "second" to 2, "second" to 3) --> {first=1, seconde=3} 4. Type 1) read-only val numbers = listOf("one", "two", "three", "four") 2) mutable - 순서를 가지며, 변경이 가능 val numbers = mutableListOf("one", "t..