11 lines
215 B
Kotlin
Vendored
11 lines
215 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
fun foo(list: List<String>): Int {
|
|
var index = 0
|
|
<caret>for (s in list) {
|
|
val x = s.length * index++
|
|
print(x)
|
|
print(s)
|
|
}
|
|
return index
|
|
} |