7e28cb1fe3
Related to KT-15476
11 lines
200 B
Kotlin
Vendored
11 lines
200 B
Kotlin
Vendored
// PROBLEM: none
|
|
// WITH_RUNTIME
|
|
|
|
fun test(list: List<Int>): List<Int> {
|
|
return list
|
|
.reversed()
|
|
.<caret>map { it + 1 }
|
|
.dropLast(1)
|
|
.takeLast(2)
|
|
}
|