Herror ::tuple_first_n (
    const HTuple &Tuple,
    const HTuple &Index,
    long *Selected
)
Herror ::tuple_first_n (
    const HTuple &Tuple,
    const HTuple &Index,
    HTuple *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) -> HTuple.long / double / char *
Input tuple.

Index (input_control)
number -> HTuple.long / double
Index of the first element to select.

Selected (output_control)
number(-array) -> (HTuple.) long * / double * / char *
Selected tuple elements.


Alternatives

::tuple_last_n, ::tuple_select, ::tuple_last_n, ::tuple_str_bit_select, ::tuple_concat


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH