Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


gives a sorted list of all the distinct elements that appear in any of the .

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

Details and OptionsDetails and Options

  • If the are considered as sets, Union gives their union.
  • Union[list1,list2,] can be input in StandardForm and InputForm as . The character can be entered as EscunEsc or \[Union].
  • The must have the same head, but it need not be List.
  • Union[list1,,SameTest->test] applies test to each pair of elements in the to determine whether they should be considered the same.
Introduced in 1988
| Updated in 1996