Skip to content

tuple_is_int_elemTupleIsIntElemTupleIsIntElemtuple_is_int_elemtuple_is_int_elem🔗

Short description🔗

tuple_is_int_elemTupleIsIntElemTupleIsIntElemtuple_is_int_elemtuple_is_int_elem — Test whether the types of the elements of a tuple are of type integer.

Signature🔗

tuple_is_int_elem( tuple T, out number IsInt )void TupleIsIntElem( const HTuple& T, HTuple* IsInt )static void HOperatorSet.TupleIsIntElem( HTuple t, out HTuple isInt )def tuple_is_int_elem( t: HTupleType ) -> Sequence[int]

def tuple_is_int_elem_s( t: HTupleType ) -> intHerror tuple_is_int_elem( const Hlong T, Hlong* IsInt )

Herror T_tuple_is_int_elem( const Htuple T, Htuple* IsInt )

HTuple HTuple::TupleIsIntElem( ) const

HTuple HTuple.TupleIsIntElem( )

Description🔗

tuple_is_int_elemTupleIsIntElem tests the elements of the input tuple Ttt separately. For all elements of type integer the value 11 (true) is returned in IsIntisIntis_int, else 00 (false) is returned.

Exception: Empty input tuple🔗

If the input tuple is empty, the operator returns an empty tuple.

HDevelop In-line Operation🔗

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

IsInt := is_int_elem(T)

Attention🔗

tuple_is_int_elemTupleIsIntElem returns 2 (H_MSG_TRUE) if the internal data type of the elements of the tuple is integer. In contrast to tuple_is_numberTupleIsNumber it does not return whether the elements of a tuple could be represented as integer values.

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🔗

Ttt (input_control) tuple(-array) → (integer / real / string / handle)HTuple (Hlong / double / HString / HHandle)HTuple (int / long / double / string / HHandle)HTupleTypeHtuple (Hlong / double / char* / handle)

Input tuple.

IsIntisIntis_int (output_control) number(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Are the elements of the input tuple of type integer?

Example🔗

(HDevelop)

tuple_is_int_elem ([3.1416,'pi',3,3.0], IsInt)
* IsInt = [false, false, true, false]

Result🔗

If the parameters are valid, the operator tuple_is_int_elemTupleIsIntElem returns the value 2 (H_MSG_TRUE).

Combinations with other operators🔗

Combinations

Alternatives

tuple_typeTupleType, tuple_type_elemTupleTypeElem, tuple_is_intTupleIsInt

See also

tuple_is_mixedTupleIsMixed, tuple_is_intTupleIsInt, tuple_is_realTupleIsReal, tuple_is_stringTupleIsString, tuple_is_mixedTupleIsMixed, tuple_is_real_elemTupleIsRealElem, tuple_is_string_elemTupleIsStringElem, tuple_is_numberTupleIsNumber, tuple_is_handle_elemTupleIsHandleElem, tuple_is_handleTupleIsHandle

Module🔗

Foundation