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 allScope (4)
Generalizations & Extensions (2)
Applications (2)
Augment a matrix by adding a row:
This can also be done with ArrayFlatten:
Neat Examples (2)
Wolfram Research (1988), Join, Wolfram Language function, https://reference.wolfram.com/language/ref/Join.html (updated 2014).
Text
Wolfram Research (1988), Join, Wolfram Language function, https://reference.wolfram.com/language/ref/Join.html (updated 2014).
CMS
Wolfram Language. 1988. "Join." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Join.html.
APA
Wolfram Language. (1988). Join. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Join.html