DEDUP inputVector resultVariable

Removes duplicate elements from the input variable and puts the result in the result variable. Any former contents of the result variable are replaced.

The result variable's elements will not necessarily be in the same order as those of the input variable. In fact, the elements of the output vector will be sorted in ascending order.

DATA (1 2 4 3 5 4 6 7 4 8 5 3 2) A
DEDUP A B
PRINT B

The above program produces the following output:

B: (1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0)