d815634233
declared directly in the block)
8 lines
130 B
Kotlin
Vendored
8 lines
130 B
Kotlin
Vendored
fun test(b: Boolean): (Int) -> Int {
|
|
if (b) {
|
|
fun(n: Int) = n + 1
|
|
}
|
|
else {
|
|
fun(n: Int) = n - 1
|
|
}
|
|
} |