tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemtuple_less_elem (Operator)

Name

tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemtuple_less_elem — Test, whether a tuple is elementwise less than another tuple.

Signature

tuple_less_elem( : : T1, T2 : Less)

Herror tuple_less_elem(const Hlong T1, const Hlong T2, Hlong* Less)

Herror T_tuple_less_elem(const Htuple T1, const Htuple T2, Htuple* Less)

void TupleLessElem(const HTuple& T1, const HTuple& T2, HTuple* Less)

HTuple HTuple::TupleLessElem(const HTuple& T2) const

static void HOperatorSet.TupleLessElem(HTuple t1, HTuple t2, out HTuple less)

HTuple HTuple.TupleLessElem(HTuple t2)

def tuple_less_elem(t1: MaybeSequence[Union[int, float, str]], t2: MaybeSequence[Union[int, float, str]]) -> Sequence[int]

def tuple_less_elem_s(t1: MaybeSequence[Union[int, float, str]], t2: MaybeSequence[Union[int, float, str]]) -> int

Description

tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemtuple_less_elem tests elementwise whether the input tuple T1T1T1t1t1 is less than T2T2T2t2t2. If both tuples have the same length, the corresponding elements of both tuples are compared. Otherwise, either T1T1T1t1t1 or T2T2T2t2t2 must have length 1. In this case, the comparison is performed for each element of the longer tuple with the single element of the other tuple. As a precondition for comparing the tuples elementwise two corresponding elements must either both be (integer or floating point) numbers or both be strings. Otherwise tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemtuple_less_elem returns an error.

Exception: Empty input tuples

If either or both of the input tuples are empty, the operator returns an empty tuple.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemtuple_less_elem, which can be used in an expression in the following syntax:

Less := T1 [<] T2

Execution Information

Parameters

T1T1T1t1t1 (input_control)  tuple(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Input tuple 1.

T2T2T2t2t2 (input_control)  tuple(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Input tuple 2.

LessLessLesslessless (output_control)  integer(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Result of the comparison of the input tuples.

Alternatives

tuple_equal_elemtuple_equal_elemTupleEqualElemTupleEqualElemtuple_equal_elem, tuple_not_equal_elemtuple_not_equal_elemTupleNotEqualElemTupleNotEqualElemtuple_not_equal_elem, tuple_greater_elemtuple_greater_elemTupleGreaterElemTupleGreaterElemtuple_greater_elem, tuple_less_equal_elemtuple_less_equal_elemTupleLessEqualElemTupleLessEqualElemtuple_less_equal_elem, tuple_greater_equal_elemtuple_greater_equal_elemTupleGreaterEqualElemTupleGreaterEqualElemtuple_greater_equal_elem, tuple_equaltuple_equalTupleEqualTupleEqualtuple_equal, tuple_not_equaltuple_not_equalTupleNotEqualTupleNotEqualtuple_not_equal, tuple_lesstuple_lessTupleLessTupleLesstuple_less, tuple_greatertuple_greaterTupleGreaterTupleGreatertuple_greater, tuple_less_equaltuple_less_equalTupleLessEqualTupleLessEqualtuple_less_equal, tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqualtuple_greater_equal

Module

Foundation