In C / Objective-C it is possible to find the minimum and maximum value between two numbers using MIN and MAX macros. Swift doesn\'t support macros and it seems that there a
Try this.
let numbers = [2, 3, 10, 9, 14, 6] print("Max = \(numbers.maxElement()) Min = \(numbers.minElement())")