in reply to Removal of duplicated element in array.
Check How can I remove duplicate elements from a list or array?