11a3482970
#KT-38632 Fixed
9 lines
298 B
Plaintext
Vendored
9 lines
298 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
|
|
fun foo(list: List<String>, target: MutableList<Int>) {
|
|
list
|
|
.asSequence()
|
|
.filter { it.length > 0 }
|
|
.forEach { target.add(0) }
|
|
} |