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