ClassesClasses | | Operators

tuple_removetuple_removeTupleRemoveTupleRemove (Operator)


tuple_removetuple_removeTupleRemoveTupleRemove — Remove elements from a tuple.


tuple_remove( : : Tuple, Index : Reduced)

Herror tuple_remove(const Hlong Tuple, const Hlong Index, Hlong* Reduced)

Herror T_tuple_remove(const Htuple Tuple, const Htuple Index, Htuple* Reduced)

void TupleRemove(const HTuple& Tuple, const HTuple& Index, HTuple* Reduced)

HTuple HTuple::TupleRemove(const HTuple& Index) const

static void HOperatorSet.TupleRemove(HTuple tuple, HTuple index, out HTuple reduced)

HTuple HTuple.TupleRemove(HTuple index)


tuple_removetuple_removeTupleRemoveTupleRemoveTupleRemove removes one or more elements from the tuple TupleTupleTupleTupletuple and returns the rest in the tuple ReducedReducedReducedReducedreduced. IndexIndexIndexIndexindex determines the indices of the elements to remove. Thus, IndexIndexIndexIndexindex may only contain integer values (any floating point number within IndexIndexIndexIndexindex 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 TupleTupleTupleTupletuple is empty, the operator returns an empty tuple.

HDevelop In-line Operation

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

Reduced := remove(Tuple, Index)

Execution Information


TupleTupleTupleTupletuple (input_control)  number(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Input tuple.

IndexIndexIndexIndexindex (input_control)  number(-array) HTupleHTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Indices of the elements to remove.

ReducedReducedReducedReducedreduced (output_control)  number(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Reduced tuple.


tuple_first_ntuple_first_nTupleFirstNTupleFirstNTupleFirstN, tuple_last_ntuple_last_nTupleLastNTupleLastNTupleLastN, tuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelectTupleStrBitSelect, tuple_concattuple_concatTupleConcatTupleConcatTupleConcat, tuple_inserttuple_insertTupleInsertTupleInsertTupleInsert, tuple_replacetuple_replaceTupleReplaceTupleReplaceTupleReplace

See also

tuple_selecttuple_selectTupleSelectTupleSelectTupleSelect, tuple_select_masktuple_select_maskTupleSelectMaskTupleSelectMaskTupleSelectMask



ClassesClasses | | Operators