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

8 lines
258 B
Plaintext
Vendored

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