Question: How to make Maple output an assignment instead of the assigned value?

I tried the following:

a:=1:

b:=2:

c:=-1:

L:=[a,b,c]:

M:=max(L);

 

However Maple outputs M:=2, but I want Maple to tell me the corresponding assignment 'b' of the maximum value of L, or at least 'L[2]'.

Is this possible and if so, how?

Thanks for answering.

Please Wait...