class documentation
class ArrayStack:
LIFO Stack implementation using a Python list as underlying storage.
Method | __init__ |
Create an empty stack. |
Method | __len__ |
Return the number of elements in the stack. |
Method | is |
Return True if the stack is empty. |
Method | pop |
Remove and return the element from the top of the stack (i.e., LIFO). |
Method | push |
Add element e to the top of the stack. |
Method | top |
Return (but do not remove) the element at the top of the stack. |
Instance Variable | _data |
Undocumented |