Skip to main content

Union

Union[list1,list2,…] gives a sorted list of all the distinct elements that appear in any of the listi. 

Union[list] gives a sorted version of a list, in which all duplicated elements have been dropped.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.