This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Operations /


FilledSmallSquare Union[, , ... ] gives a sorted list of all the distinct elements that appear in any of the .

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

FilledSmallSquare If the are considered as sets, Union gives their union.

FilledSmallSquare Union[, , ... ] can be input in StandardForm and InputForm as ... . The character can be entered as AliasIndicatorunAliasIndicator or \[Union].

FilledSmallSquare The must have the same head, but it need not be List.

FilledSmallSquare Union[, ... , SameTest->test] applies test to each pair of elements in the to determine whether they should be considered the same.

FilledSmallSquare See Section 1.8.7 and Section 1.8.8.

FilledSmallSquare See also: Join, Intersection, Complement, Split.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples