Difference between revisions of "Extensions.Util.ListReverse"
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 | |
| + | List<Integer> ListVariable; | ||
| + | /// Flow | ||
| + | ListVariable = Util.ListReverse(ListTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 21: | Line 24: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| + | /// Local Declarations | ||
| + | |||
List<Integer> List1; | List<Integer> List1; | ||
Revision as of 09:27, 25 October 2018
Contents
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
/// Local Declarations
List<Integer> ListVariable;
/// Flow
ListVariable = Util.ListReverse(ListTerm);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.
![]()
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