List
mapIndexed
示例:
val a = listOf(1, 2, 3).mapIndexed { i, _ -> i + 42 }
在应用快速修复后:
val a = List(listOf(1, 2, 3).size) { i -> i + 42 }