Mathematica 9 is now available

Union

Usage

Union[ ,  , ... ] gives a sorted list of all the distinct elements that appear in any of the  .
Union[list] gives a sorted version of a list, in which all duplicated elements have been dropped.


Notes

• If the  are considered as sets, Union gives their union.
Union[ ,  , ... ] can be input in StandardForm and InputForm as     ... . The character  can be entered as AliasIndicatorunAliasIndicator or \[Union].
• The  must have the same head, but it need not be List.
Union[ , ... , SameTest->test] applies test to each pair of elements in the  to determine whether they should be considered the same.
• See also: Join, Intersection, Complement, Split.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.