10 lines
143 B
Kotlin
Vendored
10 lines
143 B
Kotlin
Vendored
package foo
|
|
|
|
fun apply(f: (Int) -> Int, t: Int): Int {
|
|
return f(t)
|
|
}
|
|
|
|
|
|
fun box(): Boolean {
|
|
return apply({ a: Int -> a + 5 }, 3) == 8
|
|
} |