// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'flatMap{}.filter{}.mapIndexedTo(){}'" // INTENTION_TEXT_2: "Replace with 'asSequence().flatMap{}.filter{}.mapIndexedTo(){}'" fun foo(list: List, target: MutableCollection) { list .flatMap { it.indices } .filter { it != 10 } .mapIndexedTo(target) { i, j -> i + j } }