Files
kotlin-fork/idea/testData/intentions/loopToCallChain/forEach/simple.kt
T
2016-08-23 22:47:42 +03:00

10 lines
270 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<String>) {
<caret>for (s in list) {
if (s.isNotBlank()) {
println(s)
}
}
}