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 |
Converts the stack into an object array
method : public : ToArray() ~ H[]
Type | Description |
---|---|
H | object array |
Formats the collection into a string. If an element implements the 'Stringify' interface, it's 'ToString()' is called.
method : public : ToString() ~ String
Type | Description |
---|---|
String | string representation |
Check the top of the stack
method : public : Top() ~ H
Type | Description |
---|---|
H | value on the top of stack, Nil if stack is empty |