hi,
when i combine two arrays using exclusive or (^) the order of the
resulting elements appears to be like (a+b)-(elements from both):
a = ({ 1, 7, 2, 8, 4 });
b = ({ 2, 1, 3, 0, 5 });
a^b is ({ 7, 8, 4, 3, 0, 5 })
however if there are doubles
a = ({ 1, 7, 2, 5, 4 });
b = ({ 2, 1, 3, 5, 5 });
a^b is ({ 7, 4, 3, 5 })
b^a is ({ 3, 5, 7, 4 })
one of them remains.
what's the strategy here?
it looks like from both arrays it removes always the same number of
elements.
greetings, martin.