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.




max lst:
    lst! 0
    for item in copy lst:
         if > item dup:
              item drop
 
!. max [ 10 300 999 9 ]