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.




list.max = function()
    if not self then return null
    result = self[0]
    for item in self
        if item > result then result = item
    end for
    return result
end function
 
print [47, 11, 42, 102, 13].max