tuple_removetuple_removeTupleRemoveTupleRemovetuple_remove (算子名称)
名称
tuple_removetuple_removeTupleRemoveTupleRemovetuple_remove — Remove elements from a tuple.
参数签名
def tuple_remove(tuple: MaybeSequence[Union[float, int, str]], index: MaybeSequence[int]) -> Sequence[Union[float, int, str]]
def tuple_remove_s(tuple: MaybeSequence[Union[float, int, str]], index: MaybeSequence[int]) -> Union[float, int, str]
描述
tuple_removetuple_removeTupleRemoveTupleRemoveTupleRemovetuple_remove removes one or more elements from the tuple
TupleTupleTupleTupletupletuple and returns the rest in the tuple ReducedReducedReducedReducedreducedreduced.
IndexIndexIndexIndexindexindex determines the indices of the elements to remove. Thus,
IndexIndexIndexIndexindexindex may only contain integer values (any floating point
number within IndexIndexIndexIndexindexindex must represent an integer value without
fraction). Note that indices of tuple elements start at 0, i.e. the first
tuple element has got the index 0. Duplicates and indices out of
range are ignored.
Exception: Empty input tuple
If TupleTupleTupleTupletupletuple is empty, 该算子 returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_removetuple_removeTupleRemoveTupleRemoveTupleRemovetuple_remove,
which can be used in an expression in the following syntax:
Reduced := remove(Tuple, Index)
运行信息
- Multithreading type: independent (runs in parallel even with exclusive operators).
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
TupleTupleTupleTupletupletuple (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.
IndexIndexIndexIndexindexindex (input_control) integer(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Indices of the elements to remove.
ReducedReducedReducedReducedreducedreduced (output_control) tuple(-array) → HTupleSequence[Union[float, int, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Reduced tuple.
可替代算子
tuple_first_ntuple_first_nTupleFirstNTupleFirstNTupleFirstNtuple_first_n,
tuple_last_ntuple_last_nTupleLastNTupleLastNTupleLastNtuple_last_n,
tuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelectTupleStrBitSelecttuple_str_bit_select,
tuple_concattuple_concatTupleConcatTupleConcatTupleConcattuple_concat,
tuple_inserttuple_insertTupleInsertTupleInsertTupleInserttuple_insert,
tuple_replacetuple_replaceTupleReplaceTupleReplaceTupleReplacetuple_replace
参考其它
tuple_selecttuple_selectTupleSelectTupleSelectTupleSelecttuple_select,
tuple_select_masktuple_select_maskTupleSelectMaskTupleSelectMaskTupleSelectMasktuple_select_mask
模块
Foundation