Enter code to remove duplicate entries from a list


Suppose I have a list R of dimension $ n $. I want to (probably efficiently) create a new list R1 of the dimension $ n1 leq n $ from which all duplicate entries have been removed from R – that is, each entry from R1 should be unique. (Pretty basic question, I think.)