delete(x, A)
|
Equality is determined with ===, which is quick, but not always intuitive. For instance, in the next example, the first item in the list is not removed, because it is an element of QQ and will not match an element of ZZ.
|
To delete items from a list by index, rather than value, see drop.
The object delete is a method function.
The source of this document is in Macaulay2Doc/functions/delete-doc.m2:37:0.