Slide 29
Slide 29 text
Collection KTX
// Java Collections
val array = arrayOf(1, 2, 3)
val list = listOf(1, 2, 3)
val set = setOf("one", "two", "three")
val map = mapOf(1 to "one", 2 to "two")
// Android Collections with ktx
val arraySet: ArraySet = arraySetOf("one", "two", "three")
val arrayMap: ArrayMap = arrayMapOf(1 to "one", 2 to "two")