listremdup/2—remove duplicate elements from a list

The listremdup/2 operation removes duplicate elements from a list. The syntax for this function is as follows: 

listremdup($LIST1,$LIST)
$LIST=listremdup($LIST1)

listremdup/2 arguments

Argument

Mode

Type

Description

$LIST1

Input

LIST_OF ANY

Specifies the list from which duplicate elements are to be removed

$LIST

Output

LIST_OF ANY

List without duplicate elements

Use the listremdup/2 operation to construct a new list $LIST that contains all the elements from list $LIST1 without duplicates.

listremdup/2 example

$MY_BAD_SLOTS=listremdup($E.mc_bad_slot_names);
Was this page helpful? Yes No Submitting... Thank you

Comments