mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
9 lines
158 B
Kotlin
Vendored
9 lines
158 B
Kotlin
Vendored
fun test(str: String): String {
|
|
var s = ""
|
|
for (i in 1..3) {
|
|
s += if (i<2) str else break
|
|
}
|
|
return s
|
|
}
|
|
|
|
fun box(): String = test("OK") |