Files
kotlin-fork/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/simple4.kt.after
T
Dmitry Gridin 11a3482970 tests: apply official code style
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00

13 lines
228 B
Plaintext
Vendored

// WITH_RUNTIME
fun test(foo: Foo): List<Int> {
return foo.getList()
.asSequence()
.filter { it > 1 }
.map { it * 2 }
.toList()
}
class Foo {
fun getList(): List<Int> = listOf(1, 2, 3)
}