6 lines
180 B
Plaintext
Vendored
6 lines
180 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
fun test(list: List<Int>) {
|
|
val mapIndexedTo: MutableList<Int> = list.asSequence().filter { it > 1 }
|
|
.mapIndexedTo(mutableListOf()) { index, i -> i }
|
|
} |