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
-1
@@ -4,7 +4,6 @@
|
||||
fun test(list: List<Int>): List<Int> {
|
||||
return list
|
||||
.reversed()
|
||||
.map { it + 1 }
|
||||
.<caret>map { it + 1 }
|
||||
.dropLast(1)
|
||||
.takeLast(2)
|
||||
|
||||
Reference in New Issue
Block a user