This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / The Mathematica Book / Practical Introduction / Lists  /

1.8.7 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}]


  • Union combines lists, keeping only distinct elements.
  • In[2]:= Union[{a, b, c}, {c, a, d}, {a, d}]