Consider this example:
Complement[{a, y, c, d, e}, {a, c}, {d}]
(*{e, y}*)
However, I was expecting the result to be:
(*{y,e}*)
Why did Complement[]
reorder the resulting list?
Any idea how to get the desired results (list with elements in their original order), using Complement[]
?