11a3482970
#KT-38632 Fixed
10 lines
190 B
Kotlin
Vendored
10 lines
190 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun test(list: List<Int>): List<Int> {
|
|
return list
|
|
.reversed()
|
|
.<caret>map { it + 1 }
|
|
.map { it + 1 }
|
|
.dropLast(1)
|
|
.takeLast(2)
|
|
} |