This applies the given transform function on each item in the collection:
val numbers = listOf(1, 2, 3, 4, 5)
val strings = numbers.map { n -> n.toString() }
We used it here to transform int type to string type.
This applies the given transform function on each item in the collection:
val numbers = listOf(1, 2, 3, 4, 5)
val strings = numbers.map { n -> n.toString() }
We used it here to transform int type to string type.
3.147.72.15