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.




function max(... args):Number
{
	var curMax:Number = -Infinity;
	for(var i:uint = 0; i < args.length; i++)
		curMax = Math.max(curMax, args[i]);
	return curMax;
}