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

5 lines
120 B
Kotlin
Vendored

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