Join Slack
Powered by
``` listOf(1, 2, 3, "a", 5).mapIndexed { i, value ...
# getting-started
c
cedric
06/22/2016, 7:53 PM
Copy code
listOf(1, 2, 3, "a", 5).mapIndexed { i, value -> if (i==3) 4 else value }` [1, 2, 3, 4, 5]
Open in Slack
Previous
Next