Try Math.min(2,3)
# getting-started
b
Try Math.min(2,3)
n
👍
Shouldn't it respond with some appropriate error message, other than what was displayed???!!!
b
I agree the error is a bit cryptic, but it was also a bit unclear which min method you were trying to call.
i
there's
minOf()
function that's available from
kotlin.comparisons
package imported by default: http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.comparisons/min-of.html
👍 1