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