up previous next
append

append an object to an existing list

Syntax
append(Ref V:LIST, E:OBJECT):NULL

where V is a variable containing a list.

Description
This function appends the object E to the list V.

Example
/**/  Use R ::= QQ[t,x,y,z];
/**/  L := [1,2,3];
/**/  append(Ref L, 4);
/**/  L;
[1, 2, 3, 4]

See Also