Growable stack of generics
OperationsDefault constructor
New()
Clears the vector
method : public : Empty() ~ Nil
Checks to see if the stack is empty
method : public : IsEmpty() ~ Bool
Type | Description |
---|---|
Bool | true if empty, false otherwise |
Pushes a value from the stack
method : public : Pop() ~ H
Type | Description |
---|---|
H | popped valued, Nil if stack is empty |
Pushes a value onto the stack
method : public : Push(value:H) ~ Nil
Name | Type | Description |
---|---|---|
value | H | to push |
Size of stack
method : public : Size() ~ Int
Type | Description |
---|---|
Int | size of stack |
Check the top of the stack
method : public : Top() ~ H
Type | Description |
---|---|
H | value on the top of stack, Nil if stack is empty |