tuple_lengthtuple_lengthTupleLengthTupleLength (Operator)
Name
tuple_lengthtuple_lengthTupleLengthTupleLength
— Return the number of elements of a tuple.
Signature
Herror tuple_length(const Hlong Tuple, Hlong* Length)
Herror T_tuple_length(const Htuple Tuple, Htuple* Length)
Description
tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLength
returns the number of elements of the input tuple
TupleTupleTupleTupletuple
.
Exception: Empty input tuple
If the input tuple is empty, the operator returns 0.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLength
,
which can be used in an expression in the following syntax:
Length := |Tuple|
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TupleTupleTupleTupletuple
(input_control) tuple(-array) →
HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Input tuple.
LengthLengthLengthLengthlength
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of elements of input tuple.
Alternatives
tuple_mintuple_minTupleMinTupleMinTupleMin
,
tuple_maxtuple_maxTupleMaxTupleMaxTupleMax
,
tuple_meantuple_meanTupleMeanTupleMeanTupleMean
,
tuple_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviation
,
tuple_sumtuple_sumTupleSumTupleSumTupleSum
,
tuple_mediantuple_medianTupleMedianTupleMedianTupleMedian
See also
tuple_typetuple_typeTupleTypeTupleTypeTupleType
Module
Foundation