tuple_first_n ( : : Tuple, Index : Selected )

Select the first elements of a tuple.

tuple_first_n selects the first elements of Tuple and returns them with Selected. Thus Selected contains all elements of Tuple from the first element up to the ``n-th'' element of Tuple (including the ``n-th'' element). 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.


Parameters

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

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

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


Parallelization Information

tuple_first_n is reentrant and processed without parallelization.


Alternatives

tuple_last_n, tuple_select, tuple_last_n, tuple_str_bit_select, tuple_concat


Module

Operators not requiring licensing



Copyright © 1996-2005 MVTec Software GmbH