Why are max(::) and min(::) not allowed in a Swift Int extension, such as:
extension Int {
func some(low: Int, high: Int) -> Int {
return max(low, high)
}
}
The error says: Static member 'max' cannot be used on instance of type'Int'