Join

Join[list1,list2,]

concatenates lists or other expressions that share the same head.

Join[list1,list2,,n]

joins the objects at level n in each of the listi.

Details

  • The listi do not need to have head List, but must all have the same head.
  • Join works on Association objects, keeping the last value associated with any given key.
  • Join works on SparseArray objects by effectively concatenating the corresponding ordinary lists. »
  • Join[list1,list2,,n] handles ragged arrays by effectively concatenating all successive elements at level n in each of the listi. »

Examples

open allclose all

Basic Examples  (3)

In[1]:=
Click for copyable input
Out[1]=

Infix syntax:

In[1]:=
Click for copyable input
Out[1]=

Join two associations:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Generalizations & Extensions  (2)

Applications  (2)

Properties & Relations  (1)

Neat Examples  (2)

See Also

Catenate  Union  StringJoin  Append  Prepend  PadLeft  Flatten  ArrayFlatten  ArrayPad

Tutorials

Related Demonstrations

Introduced in 1988
(1.0)
| Updated in 2014
(10.0)