next up previous contents index
Next: setRest! Up: ListType Previous: reverse   Contents   Index


setFirst!


Usage

setFirst!(l,t)


Signature

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


Parameter Type Description
l % a nonempty list
t % an element


Description

Replaces the first element of l by t and returns t.


Remarks

setFirst!(l,t) does not make a copy of l, which is therefore modified after the call.


See Also

setRest!



Manuel Bronstein 2004-06-28