lst_del(L;D)
Remove the elements in list-value L
at the
index positions specified in list-value D
.
Syntax
lst_del(L;D)
Input
Argument | Type | Description |
---|---|---|
L |
list-value | A list-value whose values will be removed according to the index positions in
list-value D |
D |
list-value | A list-value containing integers representing index positions |
Return Value
Returns a single list-value that contains values from list-value L
that
were not found at the index positions specified in list-value D
.
Example
This example demonstrates how to use lst_del(L;D)
to remove elements from
a list-value based on a list-value of index positions. In this case, the first three
elements of list-value L
are removed.
<block name="list_funs" list_a="{lst(1 'a' 'b' 'c' 'd' 2 1)}" indexes="{lst(1 2 3)}"> <base table="default.lonely"/> <willbe name="remove_positions" label="Remove Positions" value="'{lst_del(@list_a;@indexes)}'"/> </block>
The list-value output from the lst_del(L;D)
function as used above: