Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/mutableSet.kt.after
T
Toshiaki Kameyama 7e28cb1fe3 Call chain --> Sequence: take termination into account
Related to KT-15476
2018-08-08 11:02:47 +03:00

5 lines
130 B
Plaintext
Vendored

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