73799e2c3c
It's done with similar constructions where possible trying to preserve intended behavior. Some usages are removed because they test exactly the feature that we are going to drop soon.
8 lines
163 B
Kotlin
Vendored
8 lines
163 B
Kotlin
Vendored
fun box(): String {
|
|
return if (apply(5) { arg: Int -> arg + 13 } == 18) "OK" else "fail"
|
|
}
|
|
|
|
fun apply(arg: Int, f: (p: Int) -> Int): Int {
|
|
return f(arg)
|
|
}
|