Files

7 lines
177 B
Kotlin
Vendored

fun calc(x: List<String>?): Int {
// x should be non-null in arguments list, despite of a chain
x?.subList(0, 1)?.get(x.size)
// But not here!
return x!!.size
}