====== Calc Lookup Table Difference ====== ===== Description ===== Calculates the difference between two lookup tables. ===== Inputs ===== ^ Name ^ Type ^ Description ^ | First Table | [[Lookup Table Type]] | The first lookup table. | | Second Table | [[Lookup Table Type]] | The second lookup table. | ===== Optional Inputs ===== ^ Name ^ Type ^ Description ^ Default Value ^ | Use Symmetrical Difference | [[Boolean Value Type]] | If true, the symmetrical difference between First Table and Second Table is calculated, keeping the keys present in only one of the two tables; if false, the relative complement is calculated instead, keeping only the keys of First Table that do not occur in Second Table. | False | ===== Outputs ===== ^ Name ^ Type ^ Description ^ | Result | [[Lookup Table Type]] | The resulting lookup table. | ===== Group ===== [[Functor List#Lookup Table | Lookup Table]] ===== Notes ===== The key and value column names of Result are inherited from First Table. For background on the two set operations this functor can compute, see [[https://en.wikipedia.org/wiki/Complement_(set_theory)#Relative_complement|relative complement]] and [[https://en.wikipedia.org/wiki/Symmetric_difference|symmetric difference]]. ===== Internal Name ===== CalcLookupTableDifference