Append
Append[expr,elem]
gives expr with elem appended.
Details
- In iteratively building a list, it is usually more efficient to use Sow and Reap than to use Append[list,new] at each step.
- Append works on SparseArray objects, returning ordinary lists if necessary.
- Append can be used on Association objects. Single new elements are specified in the form key->value. New values replace older ones if their keys are the same.
- Multiple elements to append to an association can be specified in the form {key1->value1,key2->value2, …}.
- Append[elem][expr] is equivalent to Append[expr,elem].
Examples
open allclose all
Wolfram Research (1988), Append, Wolfram Language function, https://reference.wolfram.com/language/ref/Append.html (updated 2014).
Text
Wolfram Research (1988), Append, Wolfram Language function, https://reference.wolfram.com/language/ref/Append.html (updated 2014).
CMS
Wolfram Language. 1988. "Append." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Append.html.
APA
Wolfram Language. (1988). Append. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Append.html