tuple_lengthtuple_lengthTupleLengthTupleLengthtuple_length (Operator)

Name

tuple_lengthtuple_lengthTupleLengthTupleLengthtuple_length — Return the number of elements of a tuple.

Signature

tuple_length( : : Tuple : Length)

Herror tuple_length(const Hlong Tuple, Hlong* Length)

Herror T_tuple_length(const Htuple Tuple, Htuple* Length)

void TupleLength(const HTuple& Tuple, HTuple* Length)

HTuple HTuple::TupleLength() const

static void HOperatorSet.TupleLength(HTuple tuple, out HTuple length)

HTuple HTuple.TupleLength()

def tuple_length(tuple: MaybeSequence[Union[float, int, str]]) -> int

Description

tuple_lengthtuple_lengthTupleLengthTupleLengthTupleLengthtuple_length returns the number of elements of the input tuple TupleTupleTupleTupletupletuple.

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_lengthTupleLengthTupleLengthTupleLengthtuple_length, which can be used in an expression in the following syntax:

Length := |Tuple|

Execution Information

Parameters

TupleTupleTupleTupletupletuple (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.

LengthLengthLengthLengthlengthlength (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of elements of input tuple.

Alternatives

tuple_mintuple_minTupleMinTupleMinTupleMintuple_min, tuple_maxtuple_maxTupleMaxTupleMaxTupleMaxtuple_max, tuple_meantuple_meanTupleMeanTupleMeanTupleMeantuple_mean, tuple_deviationtuple_deviationTupleDeviationTupleDeviationTupleDeviationtuple_deviation, tuple_sumtuple_sumTupleSumTupleSumTupleSumtuple_sum, tuple_mediantuple_medianTupleMedianTupleMedianTupleMediantuple_median

See also

tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type

Module

Foundation