`(1..100).map { i -> AnimalPlanet( __use i here...
# android
b
(1..100).map { i -> AnimalPlanet( __use i here__) }
👍 1
m
thx, now i understand
b
No prob
g
Same for List builder function, you have access to index as lambda parameter. approach with list builder just little bit more efficient (no additional range and iterator instances)
👍 1
b
Yeah of course, is just Im used to range and map and thats what comes to mind faster 🙂