Include (set_variable, ordinal_value);
Add (join) a single element to a set. ordinal_value must be compatible with the base type of set_variable. Include is equivalent to:
set_variable := set_variable + [ordinal_value];
If set_variable already contains ordinal_value, nothing happens.
Include is a Borland Pascal extension.
program IncludeDemo; var Ch: Char; MyCharSet: set of Char; begin MyCharSet := ['P', 'N', 'L']; Include (MyCharSet , 'A') { A, L, N, P } end.
See other examples in set and Set Operations.
Keywords, Set Operations, set, in, Exclude.