tuple_last_nπ
Short descriptionπ
tuple_last_n β Select all elements from index βnβ to the end of a tuple.
Signatureπ
tuple_last_n( tuple Tuple, integer Index, out tuple Selected )
Descriptionπ
Starting with the βn-thβ element of the tuple Tuple,
tuple_last_n selects every element of Tuple and returns
it with Selected. Thus, Selected contains all
elements of Tuple from index βnβ up to the last element
of Tuple (including the element at position βnβ). The index
βnβ is determined by the input parameter Index. Thus,
Index must contain a single integer value (if Index
consists of a floating point number, this must represent
an integer value without fraction). Indices of tuple elements start at 0,
that means, the first tuple element has got the index 0.
Exception: Empty input tupleπ
If Tuple is empty, an exception is raised.
HDevelop In-line Operationπ
HDevelop provides an in-line operation for tuple_last_n,
which can be used in an expression in the following syntax:
Selected := lastn(Tuple, Index)
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
Tuple (input_control) tuple(-array) β (integer / real / string)
Input tuple.
Index (input_control) integer β (integer)
Index of the first element to select.
Selected (output_control) tuple(-array) β (integer / real / string)
Selected tuple elements.
Combinations with other operatorsπ
Combinations
Alternatives
tuple_first_n, tuple_select, tuple_str_bit_select, tuple_concat, tuple_select_mask
See also
Moduleπ
Foundation