7 lines
129 B
Kotlin
7 lines
129 B
Kotlin
package foo
|
|
|
|
fun apply(i: Int, f: Int.(Int) -> Int) = i.f(1);
|
|
|
|
fun box(): Boolean {
|
|
return apply(1, { i -> i + this }) == 2
|
|
} |