tuple_select_range ( : : Tuple, Leftindex, Rightindex : Selected )

Select several elements of a tuple.

tuple_select_range selects several consecutive elements of the input tuple Tuple and returns them with Selected. At this, Leftindex determines the index of the first element and Rightindex determines the index of the last element to select. Thus both parameters Leftindex and Rightindex must contain a single integer value (any floating point number 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. The result tuple Selected contains every element from the tuple Tuple that has got an index between Leftindex and Rightindex (including the elements at position Leftindex and Rightindex). The index Rightindex must be greater or equal to Leftindex. If the parameters contain equal values, only one element is selected.


Parameters

Tuple (input_control)
number(-array) -> integer / real / string
Input tuple.

Leftindex (input_control)
number(-array) -> integer / real
Index of first element to select.

Rightindex (input_control)
number(-array) -> integer / real
Index of last element to select.

Selected (output_control)
number(-array) -> integer / real / string
Selected tuple elements.


Parallelization Information

tuple_select_range is reentrant and processed without parallelization.


Alternatives

tuple_select, tuple_first_n, tuple_last_n, tuple_str_bit_select, tuple_concat


Module

Operators not requiring licensing



Copyright © 1996-2005 MVTec Software GmbH