min(_:_:)
Returns the lesser of two comparable values.
Declaration
func min<T>(_ x: T, _ y: T) -> T where T : ComparableParameters
- x:
A value to compare.
- y:
Another value to compare.
Return Value
The lesser of x and y. If x is equal to y, returns x.