11a3482970
#KT-38632 Fixed
8 lines
252 B
Plaintext
Vendored
8 lines
252 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
|
|
fun foo(list: List<Int>){
|
|
list
|
|
.filter { it > 0 }
|
|
.forEach { println("positive number") }
|
|
} |