List
mapIndexed
예:
val a = listOf(1, 2, 3).mapIndexed { i, _ -> i + 42 }
빠른 수정을 적용한 후:
val a = List(listOf(1, 2, 3).size) { i -> i + 42 }