DIFFERENCE
Given two sets A and B, the DIFFERENCE
function returns a new "A minus B" set, that is what is left of A after removing the domains that A and B have in common.
For example, given these two sets:
setOne:
1
1.01
1.15
1.17
setTwo:
1.01
1.15
1.18
the statement:
var diff = DIFFERENCE(setOne, setTwo);
defines and populates the diff
set this way:
1
1.17
The members of setTwo
are subtracted from setOne
. Domain 1.18
does not belong to setOne
, so it cannot be subtracted.
The syntax is:
DIFFERENCE(set1, set2)
where set1
and set2
are set variables.