Difference between revisions of "Extensions.Util.ListReverse"

From emotive
Jump to navigation Jump to search
 
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
/// Local Declarations
+
ListTerm Util.ListReverse(ListTerm list);
List<Integer> ListVariable;
 
/// Flow
 
ListVariable = Util.ListReverse(ListTerm);
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 03:09, 8 November 2018

Classification

Name ListReverse
Short Description Creates a reversed list of the given list
Class Term
Extension OTX Util extension
Group Util related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ListTerm Util.ListReverse(ListTerm list);

Description

The OTX ListReverse term is a ListTerm that returns a copy of the given list in opposite sequence.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
List The reversed list of the given list.

Properties

Name Data Type Class Default Cardinality Description
List List Term - [1..1] The List from which the reversed list shall be created.

OTL Examples

/// Local Declarations

List<Integer> List1;

/// Flow

List1 = Util.ListReverse({1, 2, 3, 4, 5, 6, 7, 8, 9});

See also

Compare
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListIndexOfAny
ListSort
Max
Min
StringFormat