22 lines
253 B
Kotlin
Vendored
22 lines
253 B
Kotlin
Vendored
|
|
fun interface Action {
|
|
fun run()
|
|
}
|
|
|
|
fun runAction(a: Action) {
|
|
a.run()
|
|
}
|
|
|
|
fun builder(c: () -> Unit) {
|
|
c()
|
|
}
|
|
|
|
fun box(): String {
|
|
var res = "FAIL"
|
|
builder {
|
|
runAction {
|
|
res = "OK"
|
|
}
|
|
}
|
|
return res
|
|
} |