tuple_lengthtuple_lengthTupleLengthTupleLengthtuple_length (Operator)
Name
tuple_lengthtuple_lengthTupleLengthTupleLengthtuple_length — 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)
def tuple_length(tuple: MaybeSequence[Union[float, int, str]]) -> int
Description
tuple_lengthtuple_lengthTupleLengthTupleLengthtuple_length 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_lengthTupleLengthTupleLengthtuple_length,
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) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Input tuple.
LengthLengthLengthlengthlength (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of elements of input tuple.
Alternatives
tuple_mintuple_minTupleMinTupleMintuple_min,
tuple_maxtuple_maxTupleMaxTupleMaxtuple_max,
tuple_meantuple_meanTupleMeanTupleMeantuple_mean,
tuple_deviationtuple_deviationTupleDeviationTupleDeviationtuple_deviation,
tuple_sumtuple_sumTupleSumTupleSumtuple_sum,
tuple_mediantuple_medianTupleMedianTupleMediantuple_median
See also
tuple_typetuple_typeTupleTypeTupleTypetuple_type
Module
Foundation