Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/mapIndexedTo.kt.after.as36
T
2020-05-08 19:13:28 +07:00

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 }
}