[top][index]
search for:

Set - Set -- set difference

Synopsis:

  • Operator: - -- a unary or binary operator, usually used for negation or subtraction
  • Input:
  • an instance of class Set.
  • an instance of class Set.
  • Output:
  • an instance of class Set.
  • Next more general method: Tally - Tally -- difference of tallies

  • x - y -- the difference of two sets.

    See also:

  • Set -- the class of all sets
  • - -- a unary or binary operator, usually used for negation or subtraction
  • Code:

         -- ../../../Macaulay2/m2/set.m2:52
         Set - Set := Set => (x,y) -> applyPairs(x, (i,v) -> if not y#?i then (i,v))

    [top][index]
    search for: