put onto list
Description
L put(L, x1, x2, ..., xn)
put(L, x1, x2, …, xn) puts x1, x2, …, xn onto the right end of L. Values are added in order from left to right, so xn becomes the last (rightmost) value of L. put(L) with no second argument puts a null value onto L.
Parameters
- L
- a list that is a stack
- x1…xn
- elements to put on the stack
- returns
- the updated stack
Defaults
- x1
- &null
Errors
See Also
- get — get value from list
- pop — pop from list
- pull — pull from list
- push — push onto list