nappend

nappend — appends one or more lists, destructively modifying them.

Syntax

nappend (list...)

		

Arguments

list

One or more lists which will be appended in order.

Returns

The first list, modified in place with the remaining lists appended onto it.

Description

This function appends one or more lists, destructively modifying all but the last argument. It is otherwise identical to append.

Example

Gamma> a = list (1, 2, 3);
(1 2 3)
Gamma> b = list (4, 5, 6);
(4 5 6)
Gamma> c = list (7, 8, 9);
(7 8 9)
Gamma> nappend (a, b, c);
(1 2 3 4 5 6 7 8 9)
Gamma> a;
(1 2 3 4 5 6 7 8 9)
Gamma> b;
(4 5 6 7 8 9)
Gamma> c;
(7 8 9)
Gamma> 
		

See Also

append