6 lines
253 B
Plaintext
Vendored
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() }
|
|
} |