max
Return the greater of two integers.
Signature
func max(a int, b int) int
Parameters
a— the first integer to compare.b— the second integer to compare.
Return Value
The greater of a and b. If the values are equal, that shared value is returned.
Example
var highest = max(18, 24)
print(highest)
The example writes 24 to standard output.