5 lines
132 B
Kotlin
Vendored
5 lines
132 B
Kotlin
Vendored
fun calc(x: List<String>?, y: Int?) {
|
|
// Smart cast should work here despite of KT-7204 fixed
|
|
x?.subList(0, y!!)?.get(y)
|
|
}
|