Loading

APPEND

lists maps

The APPEND function consumes two paramters from the top of the stack and appends the LIST, MAP or GTS on top of the stack to the one just below. The augmented LIST, MAP or GTS is then pushed back on the stack.

APPEND is available since version 1.0.0.

See also

Signature

Examples

[ 1 2 3 ] 'list' STORE // Regular '+' creates a new list so $list does not contain '4' $list 4 + // in place '+!' adds the element to the existing list $list 5 +! // same effect as 6 +! 7 +! $list [ 6 7 ] APPEND
[ 'a' 'b' 'c' ] [ 'd' 'e' ] APPEND
{ 'a' 'aa' 'b' 'bb' 'c' 'cc' } { 'd' 'dd' 'e' 'ee' } APPEND
NEWGTS 1 100 <% NaN NaN NaN T ADDVALUE %> FOR NEWGTS 101 200 <% NaN NaN NaN T ADDVALUE %> FOR APPEND