Home

Stack<H>

Growable stack of generics

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 : Pop() ~ H
Return
TypeDescription
Hpopped valued, Nil 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 : Top() ~ H
Return
TypeDescription
Hvalue on the top of stack, Nil if stack is empty