mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
181 B
Kotlin
Vendored
9 lines
181 B
Kotlin
Vendored
fun box() : String {
|
|
val y = 12
|
|
val op = { x:Int -> (x + y).toString() }
|
|
|
|
val op2 : Int.(Int) -> String = { op(this + it) }
|
|
|
|
return if("27" == 5.op2(10)) "OK" else "fail"
|
|
}
|