Difference between revisions of "TIAInTIA"

From SCAR Divi Manual
Jump to: navigation, search
(See Also)
 
Line 23: Line 23:
  
 
==See Also==
 
==See Also==
*[[TIAInTIARel]]
 
 
*[[TIAContains]]
 
*[[TIAContains]]
  

Latest revision as of 19:17, 24 October 2011

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