mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
14 lines
236 B
Kotlin
Vendored
14 lines
236 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
val arr = arrayOf("a", "b", "c", "d")
|
|
|
|
fun box(): String {
|
|
var count = 0
|
|
|
|
for ((_, _) in arr.withIndex()) {
|
|
count++
|
|
}
|
|
|
|
return if (count == 4) "OK" else "fail: '$count'"
|
|
} |