Macaulay2 » Documentation
Packages » Macaulay2Doc » combinatorics » Set » Set - Set
next | previous | forward | backward | up | index | toc

Set - Set -- set difference

Description

At least one of x, y must be a set, and the other may be a list. If x is a list, then so is the result.
i1 : set{a,b,c} - set{a}

o1 = set {c, b}

o1 : Set
i2 : set{a,b,c} - {a}

o2 = set {c, b}

o2 : Set
i3 : {a,b,c} - set{a}

o3 = {b, c}

o3 : List

See also

Ways to use this method:

  • List - Set
  • Set - List
  • Set - Set -- set difference

The source of this document is in Macaulay2Doc/functions/set-doc.m2:128:0.