Question: List of Values up to the maximum

Hi, this should be simple

I have a list of values here, say: [1,4,7,4,2,1] or [3,5,8,11,5,4,3]

And I want the final answer to be [1,4,7] or [3,5,8,11] respectively - i.e. just all the numbers up until the maximum value presented as a list. I believe this will be needed to be done in procedure form. 

For the particular procedure I am using the values in the list will be increasing and then decreasing. 


Please Wait...