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...")
 
(See Also)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
  
 
==See Also==
 
==See Also==
*[[TIAInTIARel]]
 
 
*[[TIAContains]]
 
*[[TIAContains]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:TPA Functions]]
+
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Latest revision as of 20: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