11a3482970
#KT-38632 Fixed
10 lines
287 B
Plaintext
Vendored
10 lines
287 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filter{}.forEach{}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
|
|
fun foo(list: List<String>): Long {
|
|
var count = 0L
|
|
list
|
|
.filter { it.length > 10 }
|
|
.forEach { count++ }
|
|
return count
|
|
} |