Kotlin Collection (Array)
Jan 5, 2023
The main type of collection
Press enter or click to view image in full size![]()
(1)Immutable collection = Can’t not be change (2) Mutable Collection = We can able to change
Get Tej Shah’s stories in your inbox
Join Medium for free to get updates from this writer.
1.1 listOf — read-only, immutable, fixed size
Press enter or click to view image in full size![]()
1.2 ArrayList, arrayListOf, mutableListOf
Press enter or click to view image in full size![]()
2.1 mapOf
Press enter or click to view image in full size![]()
2.2 HashMap, hashMapOf, mutableMapOf
Press enter or click to view image in full size![]()
3.1 setOf
Press enter or click to view image in full size![]()
3.2 mutableSetOf, hashSetOf
Press enter or click to view image in full size![]()



