Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




if let x = [4,3,5,9,2,3].maxElement() {
  print(x) // prints 9
}