Call chain --> Sequence: take termination into account
Related to KT-15476
This commit is contained in:
committed by
Mikhail Glukhikh
parent
108dea5b46
commit
7e28cb1fe3
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
val mapIndexedTo: MutableList<Int> = list.<caret>filter { it > 1 }.mapIndexedTo(mutableListOf()) { index, i -> i }
|
||||
}
|
||||
Reference in New Issue
Block a user