Usage
setFirst!(l,t)
Signature
setFirst!: (%,T) 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!