tuple_first_nš
Short descriptionš
tuple_first_n ā Select the first elements of a tuple up to the index ānā.
Signatureš
tuple_first_n( tuple Tuple, integer Index, out tuple Selected )
Descriptionš
tuple_first_n selects the first elements of Tuple
up to the index Index and returns them in Selected.
Indices of tuple elements start at 0,
that means, the first tuple element has got the index 0. In total,
Index+1 elements are returned.
Index must contain a single integer value (or a floating point
number that represents an integer value without fraction).
Exception: Empty input tupleš
If Tuple is empty, an exception is raised.
HDevelop In-line Operationš
HDevelop provides an in-line operation for tuple_first_n,
which can be used in an expression in the following syntax:
Selected := firstn(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 last element to select.
Selected (output_control) tuple(-array) ā (integer / real / string)
Selected tuple elements.
Combinations with other operatorsš
Combinations
Alternatives
tuple_last_n, tuple_select, tuple_str_bit_select, tuple_concat, tuple_select_mask
See also
Moduleš
Foundation