next up previous contents index
Next: cons Up: ListType Previous:   Contents   Index


append!


Usage

append!(l, x)
append!(l, s)


Signatures

append!: (%, T) $\to$ %
append!: (%, %) $\to$ %


Parameter Type Description
l,s % lists
x T an entry


Returns

append!(l,x) and append!(l,s) return the lists $[l,x]$ and $[l,s]$ respectively.


Remarks

append! does not make a copy of $l$, which is therefore modified after the call. It is unsafe to use the variable $l$ after the call, unless it has been assigned to the result of the call, as in l := append!(l, x).


See Also

cons



Manuel Bronstein 2004-06-28