pull from list
Description
x pull(L)
pull(L) produces the rightmost element of L and removes it from L, but fails if L is empty .
Parameters
- L
- a list that is a stack
- returns
- last element on the list
Errors
See Also
- get — get value from list
- pop — pop from list
- push — push onto list
- put — put onto list