Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/simple3.kt.after
T
2018-08-08 10:29:10 +03:00

13 lines
252 B
Plaintext
Vendored

// WITH_RUNTIME
fun test(list: List<Int>): List<Int> {
return list
.reversed()
.asSequence()
.map { it + 1 }
.map { it + 1 }
.toList()
.dropLast(1)
.takeLast(2)
}