Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Numerical Data >

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.
  • If the listi are considered as sets, Union gives their union.
  • The listi must have the same head, but it need not be List.
  • Union[list1, ..., SameTest->test] applies test to each pair of elements in the listi to determine whether they should be considered the same.
New in 1 | Last modified in 3
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team