Append—Wolfram Language Documentation
reference.wolfram.com › language › refDetails. 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.
evaluation - Append vs AppendTo - Mathematica Stack Exchange
mathematica.stackexchange.com › append-vs-appendtoJul 02, 2021 · Show activity on this post. It is an evaluation issues. I can't pin the exact sequence now, but here is a workaround. y = {}; Plot [AppendTo [y, x]; Sin [x], {x, Pi/4, Pi/2}, Evaluated -> False] y. Which now gives the same exact output as. y = {}; Plot [y = Append [y, x]; Sin [x], {x, Pi/4, Pi/2}] You can see this answer using-evaluate-and ...