delete(x,v) -- removes any occurrences of the expression x from the list v.
Equality is determined with == which may do extensive calculations in certain cases.
i1 : delete(c,{a,b,c,d,e,a,b,c,d,e}) |
See also:
Code:
-- ../../../Macaulay2/m2/structure.m2:21 delete = (x,v) -> select(v, i -> i != x)