Slide 11
Slide 11 text
Better collections
api
val list: List = listOf(1, 2, 3, 4)
mapOf("Mouhamed" to 21, "ali" to 25, "Papi" to 29)
setOf("one", "two", "three")
val mutableList: MutableList = mutableListOf(1, 2, 3, 4)
mutableMapOf("Mouhamed" to 21, "ali" to 25, "Papi" to 29)
mutableSetOf("one", "two", "three")
val list = listOf(1, 2, 3, 4)
val newList = list.map { it * 2 }.filter { it > 2 }