Home

IntStack

Growable integer based stack

Operations

New

Default constructor

New()

Empty

Clears the vector

method : public : Empty() ~ Nil

IsEmpty

Checks to see if the vector is empty

method : public : IsEmpty() ~ Bool
Return
TypeDescription
Booltrue if empty, false otherwise

Pop

Pushes a value from the stack

method : public : native : Pop() ~ Int
Return
TypeDescription
Intpopped valued, 0 if stack is empty

Size

Size of stack

method : public : Size() ~ Int
Return
TypeDescription
Intsize of stack

Top

Check the top of the stack

method : public : native : Top() ~ Int
Return
TypeDescription
Intvalue on the top of stack, 0 if stack is empty