Global Functionswift 6.0.1Swift
max(_:_:)
Returns the greater of two comparable values.
func max<T>(_ x: T, _ y: T) -> T where T : Comparable
Parameters
Returns
The greater of x
and y
. If x
is equal to y
, returns y
.
Returns the greater of two comparable values.
func max<T>(_ x: T, _ y: T) -> T where T : Comparable
The greater of x
and y
. If x
is equal to y
, returns y
.