Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  The Teacher's Book /  Interlude 1: Lists /

12.6 Combining Lists

Functions for combining lists.

Join concatenates any number of lists together.

In[1]:= Join[{a, b, c}, {x, y}, {c, {d, e}, a}]

Out[1]=

Union combines lists, keeping only distinct elements and sorting them.

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

Out[2]=