setwise-xor ( seq1 seq2 -- set )
Extra sets words


Vocabulary
sets.extras

Inputs
seq1a sequence
seq2a sequence


Outputs
seta set


Word description
Converts the sequences to sets and takes the element-wise xor. Outputs elements that are in either set but not in both.
USING: sets.extras prettyprint ; { 1 2 3 } { 2 3 4 } setwise-xor .
{ 1 4 }


Notes
Known as setxor1d in numpy.

Definition