Difference between revisions of "TEAInTEA"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TEAInTEA(const TEA1, TEA2: TExtArray): Boolean; </source> ==Availability== SCAR Divi 3.34 > Current ==Description== R...")
 
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns [[true]] if all integers in '''TIA1''' are also part of '''TIA2'''. The function does not take into account duplicates.
+
Returns [[true]] if all [[Extended|extendeds]] in '''TEA1''' are also part of '''TEA2'''. The function does not take into account duplicates.
  
 
==Example==
 
==Example==

Latest revision as of 11:08, 22 May 2012

Definition

function TEAInTEA(const TEA1, TEA2: TExtArray): Boolean;

Availability

SCAR Divi 3.34 > Current

Description

Returns true if all extendeds in TEA1 are also part of TEA2. The function does not take into account duplicates.

Example

begin
  WriteLn(TEAInTEA([1.5, 2.7, 3.1], [0, 2.7, 4.2, 1.5, 5, 3.1]));
  WriteLn(TEAInTEA([1.5, 2.7, 3.1], [0, 2.7, 4.2, 1.5, 5, 6.9]));
end.

Output:

1
0

See Also