Files
kotlin-fork/idea/testData/intentions/loopToCallChain/map/mapTo_inputVarNotUsed.kt
T

9 lines
285 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<String>, target: MutableList<Int>) {
<caret>for (s in list) {
if (s.length > 0)
target.add(0)
}
}