Hi,
The procedure that we must write should yield output like this:
if List = [a,b,c,d], the procedure order(List, Result) outputs:
Result = [(1,a), (2,b), (3,c), (4,d)].
If the input list is different - see following example - is this the desired output
if List = [b,d,a,c], the procedure order(List, Result) outputs:
Result = [(3,a), (1,b), (4,c), (2,d)].
Or should it still be:
Result = [(1,a), (2,b), (3,c), (4,d)].
Also I have found examples returning something similar but like this: [[1,a], [2,b], [3,c], [4,d]] - but note it uses brackets in inner elements / lists not paranthesis? does it matter?