MATHEMATICA TUTORIAL
Combining Lists
| Join[list1,list2,...] | concatenate lists together |
| Union[list1,list2,...] | combine lists, removing repeated elements and sorting the result |
| Riffle[list1,list2] | interleave elements of |
Functions for combining lists.
Join concatenates any number of lists together.
| In[1]:= |
| Out[1]= |
Union combines lists, keeping only distinct elements.
| In[2]:= |
| Out[2]= |
Riffle combines lists by interleaving their elements.
| In[3]:= |
| Out[3]= |
