Skip to content

tuple_inverseTupleInverseTupleInversetuple_inversetuple_inverse🔗

Short description🔗

tuple_inverseTupleInverseTupleInversetuple_inversetuple_inverse — Invert a tuple.

Signature🔗

tuple_inverse( tuple Tuple, out tuple Inverted )void TupleInverse( const HTuple& Tuple, HTuple* Inverted )static void HOperatorSet.TupleInverse( HTuple tuple, out HTuple inverted )def tuple_inverse( tuple: MaybeSequence[Union[float, int, str]] ) -> Sequence[Union[float, int, str]]

def tuple_inverse_s( tuple: MaybeSequence[Union[float, int, str]] ) -> Union[float, int, str]Herror tuple_inverse( const Hlong Tuple, Hlong* Inverted )

Herror T_tuple_inverse( const Htuple Tuple, Htuple* Inverted )

HTuple HTuple::TupleInverse( ) const

HTuple HTuple.TupleInverse( )

Description🔗

tuple_inverseTupleInverse inverts the input tuple Tupletupletuple. Thus, Invertedinvertedinverted contains the same elements as Tupletupletuple but with the reverse order.

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

Inverted := inverse(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.

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

Inverted input tuple.

Combinations with other operators🔗

Combinations

Alternatives

tuple_sortTupleSort, tuple_sort_indexTupleSortIndex

Module🔗

Foundation