- isEmpty
signature(db = "stack"): returns
TRUE/FALSE depending on whether there are elements
in the stack.
- pop
signature(db = "stack"): returns the value of the
top of the stack and subsequently removes that
element from the stack; an error is signaled if the stack is empty
- push
signature(db = "stack"): adds an element to the
top of the stack
- show
signature(object = "stack"): prints the name of
the stack
- top
signature(db = "stack"): returns the value of the
top of the stack; an error is signaled if the stack
is empty
- mpush
signature(db = "stack"): works like push
except it can push multiple objects in a list on to the stack