10 lines
229 B
Kotlin
Vendored
10 lines
229 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>): String? {
|
|
<caret>for (s in list) {
|
|
val length = s.length
|
|
if (length > 0) return s + length
|
|
}
|
|
return null
|
|
} |