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

5 lines
126 B
Plaintext
Vendored

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