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.




 
class Greatest
{
  public static Void main () 
  {
    Int[] values := [1,2,3,4,5,6,7,8,9]
    Int greatest := values.max
    echo (greatest)
  }
}
 