mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
14 lines
293 B
Kotlin
Vendored
14 lines
293 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
fun box(): String {
|
|
val a = LongArray(5)
|
|
val x = a.iterator()
|
|
var i = 0
|
|
while (x.hasNext()) {
|
|
if (a[i] != x.nextLong()) return "Fail $i"
|
|
i++
|
|
}
|
|
return "OK"
|
|
}
|