What is the result of this code?
fun Int.opp(f: Int.() -> Int): Int = f()
fun main() {
val res = 10.opp { this % 2 }
println(res)
}What is the result of this code?
fun Int.opp(f: Int.() -> Int): Int = f()
fun main() {
val res = 10.opp { this % 2 }
println(res)
}Create a free account to access the full topic