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 |
Pops values from the stack
method : public : native : Pop(n:Int) ~ H
Name | Type | Description |
---|---|---|
n | Int | number of items to pop |
Type | Description |
---|---|
H | popped valued, Nil if stack is empty |
Pops 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 : native : ToArray() ~ H[]
Type | Description |
---|---|
H | object array |
Check the top of the stack
method : public : Top() ~ H
Type | Description |
---|---|
H | value on the top of stack, Nil if stack is empty |