listdelete/3—remove all occurrences of an element from a list

The listdelete/3 function removes all occurrences of an element from a list. The syntax for this function is as follows:

listdelete($LIST1,$ELEM,$LIST)
$LIST=listdelete($LIST1,$ELEM)

listdelete/3 arguments

Argument

Mode

Type

Description

$LIST1

Input

LIST_OF ANY

Specifies the list from which the element is to be removed

$ELEM

Input

ANY

Specifies the element to be removed

$LIST

Output

LIST_OF ANY

The list with the element removed from it

Use the listdelete/3 function to remove all occurrences of element $ELEM from list $LIST1 and place the resulting list into $LIST.

listdelete/3 example

$BAD_SLOTS=listdelete($E.mc_bad_slot_names,my_slot);
Was this page helpful? Yes No Submitting... Thank you

Comments