Handbook
Glossary
symmetric-diff ( set1 set2 -- set )
Vocabulary
sets
.
extras
Inputs
set1
a
set
set2
a
set
Outputs
set
a
set
Word description
Find the symmetric difference of two sets. Outputs a set containing elements that in either set but not in both.
Definition
USING:
kernel
sets
;
IN:
sets.extras
:
symmetric-diff
( set1 set2 -- set )
[
union
]
[
intersect
]
2bi
diff
;