Difference between revisions of "ReverseTIA"

From SCAR Divi Manual
Jump to: navigation, search
(See Also)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure InvertTIA(var TIA: TIntArray);
+
procedure ReverseTIA(var TIA: TIntArray);
 
</source>
 
</source>
  
 
==Availability==
 
==Availability==
SCAR Divi 3.28 > Current
+
SCAR Divi 3.36 > Current
 +
 
 +
===Aliases===
 +
*InvertTIA (SCAR Divi 3.28 > 3.35)
  
 
==Description==
 
==Description==
This function inverts a given [[TIntArray]] '''TIA''' by reversing the order of the coordinates contained in within it.
+
This function reverses the order of a given [[TIntArray]] '''TIA'''.
  
 
==Example==
 
==Example==
Line 17: Line 20:
 
begin
 
begin
 
   TIA := [1, 2, 3];
 
   TIA := [1, 2, 3];
   InvertTIA(TIA)
+
   ReverseTIA(TIA)
 
   WriteLn(TIAToStr(TIA));
 
   WriteLn(TIAToStr(TIA));
 
end.
 
end.

Latest revision as of 22:03, 7 September 2012

Definition

procedure ReverseTIA(var TIA: TIntArray);

Availability

SCAR Divi 3.36 > Current

Aliases

  • InvertTIA (SCAR Divi 3.28 > 3.35)

Description

This function reverses the order of a given TIntArray TIA.

Example

var
  TIA: TIntArray;

begin
  TIA := [1, 2, 3];
  ReverseTIA(TIA)
  WriteLn(TIAToStr(TIA));
end.

Output:

3,2,1

See Also