Arrays and collections / Sets

type
  TByteSet = set of Byte;

var
  First, Second, Third: TByteSet;
  IsEqual, IsIntersects, IsSubset: Boolean;
begin
  First := [12];
  Second := [21];
  Third := [123];

  IsEqual := First = Second;
  //isEqual is True

  IsIntersects := First * Third <> [];
  //isIntersects is True

  IsSubset := Third <= First;
  //isSubset is False

  WriteLn('isEqual is ', IsEqual);
  WriteLn('isIntersects is ', IsIntersects);
  WriteLn('isSubset is ', IsSubset);
  WriteLn('first <= third is ',
    First <= Third);
end.