TIAInTIA

From SCAR Divi Manual
Jump to: navigation, search

Definition

function TIAInTIA(const TIA1, TIA2: TIntArray): Boolean;

Availability

SCAR Divi 3.28 > Current

Description

Returns true if all integers in TIA1 are also part of TIA2. The function does not take into account duplicates.

Example

begin
  WriteLn(TIAInTIA([1, 2, 3], [0, 2, 4, 1, 5, 3]));
  WriteLn(TIAInTIA([1, 2, 3], [0, 2, 4, 1, 5, 6]));
end.

Output:

1
0

See Also