Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/simple2.kt.after
T
2018-10-09 11:09:28 +03:00

12 lines
262 B
Plaintext
Vendored

// HIGHLIGHT: INFORMATION
// WITH_RUNTIME
fun test(list: List<Int>): List<Int> {
return list
.asSequence()
.filter { it > 1 }
.map { it * 2 }
.map { it * 3 }
.map { it * 4 }
.toList()
}