Join Slack
Powered by
`withIndex` does what you want. e.g. `listOf("a", ...
# announcements
a
andrewoma
01/17/2016, 10:58 PM
withIndex
does what you want. e.g.
listOf("a", "b", "c").withIndex().forEach { val (index, value) = it; ... }
2
Views
Open in Slack
Previous
Next