August 2018
Beginner
178 pages
4h 56m
English
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.
Read now
Unlock full access