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.




package require Tcl 8.5
 
set values {4 3 2 7 8 9}
::tcl::mathfunc::max {*}$values ;# ==> 9