Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Previous section-----Next section

1.8.7 Combining Lists

Join[ ,  , ... ] concatenate lists together
Union[ ,  , ... ] combine lists, removing repeated elements and sorting the result

Functions for combining lists.
Join concatenates any number of lists together.

In[1]:=  Join[{a, b, c}, {x, y}, {t, u}]

Out[1]=

Union combines lists, keeping only distinct elements.

In[2]:=  Union[{a, b, c}, {c, a, d}, {a, d}]

Out[2]=


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: