Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningReduceIndexed.kt.after
T
2020-08-12 16:28:29 +03:00

5 lines
132 B
Plaintext
Vendored

// WITH_RUNTIME
fun test(list: List<Int>) {
list.asSequence().filter { it > 1 }.runningReduceIndexed { _, acc, i -> acc + i }
}