Skip to content

tuple_lengthTupleLengthTupleLengthtuple_lengthtuple_length🔗

Short description🔗

tuple_lengthTupleLengthTupleLengthtuple_lengthtuple_length — Return the number of elements of a tuple.

Signature🔗

tuple_length( tuple Tuple, out integer Length )void TupleLength( const HTuple& Tuple, HTuple* Length )static void HOperatorSet.TupleLength( HTuple tuple, out HTuple length )def tuple_length( tuple: MaybeSequence[Union[float, int, str]] ) -> int

Herror tuple_length( const Hlong Tuple, Hlong* Length )

Herror T_tuple_length( const Htuple Tuple, Htuple* Length )

HTuple HTuple::TupleLength( ) const

HTuple HTuple.TupleLength( )

Description🔗

tuple_lengthTupleLength returns the number of elements of the input tuple Tupletupletuple.

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

Length := |Tuple|

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Tupletupletuple (input_control) tuple(-array) → (integer / real / string)HTuple (Hlong / double / HString)HTuple (int / long / double / string)MaybeSequence[Union[float, int, str]]Htuple (Hlong / double / char*)

Input tuple.

Lengthlengthlength (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Number of elements of input tuple.

Combinations with other operators🔗

Combinations

Alternatives

tuple_minTupleMin, tuple_maxTupleMax, tuple_meanTupleMean, tuple_deviationTupleDeviation, tuple_sumTupleSum, tuple_medianTupleMedian

See also

tuple_typeTupleType

Module🔗

Foundation