tuple_inversetuple_inverseTupleInverseTupleInversetuple_inverse (算子)
名称
tuple_inversetuple_inverseTupleInverseTupleInversetuple_inverse — 反转元组。
签名
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]
描述
tuple_inversetuple_inverseTupleInverseTupleInverseTupleInversetuple_inverse inverts the input tuple TupleTupleTupleTupletupletuple. Thus,
InvertedInvertedInvertedInvertedinvertedinverted contains the same elements as TupleTupleTupleTupletupletuple but with
the reverse order.
例外:空输入元组
If the input tuple is empty, the operator returns an empty tuple.
HDevelop 内联操作
HDevelop provides an in-line operation for tuple_inversetuple_inverseTupleInverseTupleInverseTupleInversetuple_inverse,
which can be used in an expression in the following syntax:
Inverted := inverse(Tuple)
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
TupleTupleTupleTupletupletuple (输入控制) tuple(-array) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Input tuple.
InvertedInvertedInvertedInvertedinvertedinverted (输出控制) tuple(-array) → HTupleSequence[Union[float, int, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Inverted input tuple.
替代
tuple_sorttuple_sortTupleSortTupleSortTupleSorttuple_sort,
tuple_sort_indextuple_sort_indexTupleSortIndexTupleSortIndexTupleSortIndextuple_sort_index
模块
基础