Question: is there any built-in function equivalent to set minus for lists?

March 30 2014 Muhammad Ali 55
Maple

1

Please i don't want to convert from list to set then apply set minus and convert back because it loses its order and repititions.

 

so i want something that can for example do the following:

list_minus([1,2,4,6,2,1,3,6,2],[7,4,2,5,2]) = [1,6,1,3,6,2]

so it removes repititions from left and order is retained.

Please Wait...