There is a list L. It contains elements of arbitrary type each. How to delete all duplicate elements in such list efficiently? ORDE
In java, it's a one liner.
Set set = new LinkedHashSet(list);
will give you a collection with duplicate items removed.