mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
8 lines
152 B
Kotlin
8 lines
152 B
Kotlin
fun foo(p: List<String?>): Int {
|
|
val v = p[0]
|
|
<caret>if (v == null) {
|
|
// return -1 if null
|
|
return -1
|
|
}
|
|
return v.length
|
|
} |