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