7e28cb1fe3
Related to KT-15476
5 lines
132 B
Plaintext
Vendored
5 lines
132 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
fun test(list: List<Int>) {
|
|
val fold: Int = list.asSequence().filter { it > 1 }.fold(0) { acc, i -> acc + i }
|
|
} |