Introduce "Call chain on collection should be converted into 'Sequence'"
So #KT-15476 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
76a98c8e67
commit
108dea5b46
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
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