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

6 lines
253 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with '+= takeWhile{}'"
// INTENTION_TEXT_2: "Replace with '+= asSequence().takeWhile{}'"
fun foo(list: List<String>, target: MutableCollection<String>) {
<caret>target += list.takeWhile { !it.isEmpty() }
}