mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
9 lines
178 B
Plaintext
9 lines
178 B
Plaintext
fun box() : String {
|
|
val cl = 39
|
|
return if (sum(200, { val ff = {cl}; ff() }) == 239) "OK" else "FAIL"
|
|
}
|
|
|
|
fun sum(arg:Int, f : () -> Int) : Int {
|
|
return arg + f()
|
|
}
|