10 lines
270 B
Kotlin
Vendored
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)
|
|
}
|
|
}
|
|
} |