Difference between revisions of "TIAInTIA"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TIAInTIA(const TIA1, TIA2: TIntArray): Boolean; </source> ==Availability== SCAR Divi 3.28 > Current ==Description== R...")
 
Line 27: Line 27:
  
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:TPA Functions]]
+
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Revision as of 12:03, 21 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