tuple_remove🔗
Short description🔗
tuple_remove — Remove elements from a tuple.
Signature🔗
tuple_remove( tuple Tuple, integer Index, out tuple Reduced )
Description🔗
tuple_remove removes one or more elements from the tuple
Tuple and returns the rest in the tuple Reduced.
Index determines the indices of the elements to remove. Thus,
Index may only contain integer values (any floating point
number within Index 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 Tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation🔗
HDevelop provides an in-line operation for tuple_remove,
which can be used in an expression in the following syntax:
Reduced := remove(Tuple, Index)
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🔗
Tuple (input_control) tuple(-array) → (integer / real / string)
Input tuple.
Index (input_control) integer(-array) → (integer)
Indices of the elements to remove.
Reduced (output_control) tuple(-array) → (integer / real / string)
Reduced tuple.
Combinations with other operators🔗
Combinations
Alternatives
tuple_first_n, tuple_last_n, tuple_str_bit_select, tuple_concat, tuple_insert, tuple_replace
See also
Module🔗
Foundation