Is their a function that that removes duplicates in a certain list?.
input list is..
listWithDuplicate = ( "a" "b" "c" "d" "a" "c" "d" "a" "a")
after running the certain function, the output should look like this..
newList = ( "a" "b" "c" "d")..
I am thinking of using looping statements but using loops will affect the time to run the program specially when the list consist of many items..
Thanks in Advance..
Since you're trying to create a list of unique elements, why not use the unique() function? Something like
newList = unique( listWithDuplicates)
Another method would be to create a table and use the elements of listWithDuplicates as the keys. Then read all the keys into newList.
rusty Cadence guru