What is the result of the following code using infix functions?
infix fun Int.mod(x: Int): Int = this % x
infix fun IntRange.add(x: Int): IntRange = this.first + x..this.last + x
fun main() {
println(167 mod 5 in 3..4 add 2)
}What is the result of the following code using infix functions?
infix fun Int.mod(x: Int): Int = this % x
infix fun IntRange.add(x: Int): IntRange = this.first + x..this.last + x
fun main() {
println(167 mod 5 in 3..4 add 2)
}Create a free account to access the full topic