concatenates lists or other expressions that share the same head.
joins the objects at level n in each of the listi.
- 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. »
Examplesopen allclose all
Generalizations & Extensions (2)
Join expressions with any head:
Join works with SparseArray objects:
Augment a matrix by adding a row:
This can also be done with ArrayFlatten:
Neat Examples (2)
Successively double a list by joining to itself:
Build up the Thue–Morse sequence [more info]:
Wolfram Research (1988), Join, Wolfram Language function, https://reference.wolfram.com/language/ref/Join.html (updated 2014).
Wolfram Language. 1988. "Join." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Join.html.
Wolfram Language. (1988). Join. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Join.html