tuple_inversetuple_inverseTupleInverseTupleInversetuple_inverse (Operator)
Name
tuple_inversetuple_inverseTupleInverseTupleInversetuple_inverse
— Invert a tuple.
Signature
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]
Description
tuple_inversetuple_inverseTupleInverseTupleInversetuple_inverse
inverts the input tuple TupleTupleTupletupletuple
. Thus,
InvertedInvertedInvertedinvertedinverted
contains the same elements as TupleTupleTupletupletuple
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_inversetuple_inverseTupleInverseTupleInversetuple_inverse
,
which can be used in an expression in the following syntax:
Inverted := inverse(Tuple)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TupleTupleTupletupletuple
(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.
InvertedInvertedInvertedinvertedinverted
(output_control) tuple(-array) →
HTupleSequence[Union[float, int, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Inverted input tuple.
Alternatives
tuple_sorttuple_sortTupleSortTupleSorttuple_sort
,
tuple_sort_indextuple_sort_indexTupleSortIndexTupleSortIndextuple_sort_index
Module
Foundation