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

12 lines
238 B
Plaintext
Vendored

// WITH_RUNTIME
fun test(): Int {
return listOf(1, 2, 3)
.asSequence()
.filter { it > 1 }
.map { it * 2 }
.toList()
.let {
it.binarySearch(1)
}
}