The right result

Report a typo

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)
}
Enter a number
___

Create a free account to access the full topic