APPEND _ _ _ _ _ _ _ _ _ _ _ _ operator
The append operator constructs a new list from the elements of its two arguments (which must be lists).
<list> must be a list, though it may be the empty list ({}). Any arguments beyond the first two are ignored.
alist := {1,2,{a,b}}; ALIST := {1,2,{A,B}} blist := {3,4,5,sin(y)}; BLIST := {3,4,5,SIN(Y)} append(alist,blist); {1,2,{A,B},3,4,5,SIN(Y)} append(alist,{}); {1,2,{A,B}} append(list z,blist); {Z,3,4,5,SIN(Y)}
The new list consists of the elements of the second list appended to the elements of the first list. You can append new elements to the beginning or end of an existing list by putting the new element in a list (use curly braces or the operator list). This is particularly helpful in an iterative loop.