symmetric difference

From Free Pascal wiki
><

The symmetric difference operator is applicable to Set variables. By mathematical definition, A >< B is (A-B) joined with (B-A).

procedure test_differ;
var
  a: set of char = ['a', 'b', 'c'];
  b: set of char = ['b', 'c', 'x', 'y'];
  c: set of char;
begin
  c:= a >< b; // c becomes ['a', 'x', 'y']
end;



navigation bar: topic: Pascal symbols
single characters

+ (plus)  •  - (minus)  •  * (asterisk)  •  / (slash)
= (equal)  •  > (greater than)  •  < (less than)
. (period)  •  : (colon)  •  ; (semi colon)
^ (hat)  •  @ (at)  •  $ (dollar sign)  •  & (ampersand)

character pairs

<> (not equal)  •  := (becomes)  •  >< (symmetric difference)  •  // (double slash)