TEAInTEA

From SCAR Divi Manual
Revision as of 11:06, 22 May 2012 by Freddy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

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

Availability

SCAR Divi 3.34 > 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(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