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.




say max 10, 4, 5, -2, 11;
say max <zero one two three four five six seven eight nine>;
 
# Even when the values and number of values aren't known until runtime
my @list = flat(0..9,'A'..'H').roll((^60).pick).rotor(4,:partial)».join.words;
say @list, ': ', max @list;
 