question: when using lambda on list such as `list....
# announcements
f
question: when using lambda on list such as
list.map { process(it) }
, how can I print out the progress? Using onEach and a counter outside?
r
You can use mapIndexed
😃 1
❤️ 1
f
let me check
r
If you're not actually mapping to any value you should use forEachIndexed
❤️ 1
f
Thank you Gael, it helped a lot 😄