8 lines
179 B
Plaintext
Vendored
8 lines
179 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
fun foo(list: List<String>): Int? {
|
|
for ((index, s) in list.withIndex()) {
|
|
val x = s.length * index
|
|
if (x > 0) return x
|
|
}
|
|
return null
|
|
} |