mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
9 lines
183 B
Kotlin
9 lines
183 B
Kotlin
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"
|
|
}
|