Call chain into sequence: add 'flatten' to conversion targets #KT-26969 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bd27460694
commit
3f252b15e1
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf(listOf(1), listOf(2)).<caret>flatten().filter { it > 1 }
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf(listOf(1), listOf(2)).asSequence().flatten().filter { it > 1 }.toList()
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf(listOf(1), listOf(2, 3)).<caret>filter { it.size > 1 }.flatten()
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
listOf(listOf(1), listOf(2, 3)).asSequence().filter { it.size > 1 }.flatten().toList()
|
||||
}
|
||||
Reference in New Issue
Block a user