I needed to remove the first element from an array in my program. Here is the code:
input = input.Except(new string[] {input[0]}).ToArray();
This returns the difference between the original array and an array with the to be removed element. However, it also removes duplicates (I think).
When I input
average 10 20 10 30
it returns
10 20 30
Job done, but I don't want it to remove duplicates. How do I get it to stop removing duplicates?