Stack
Growable stack of generics
Operations
IsEmpty
Checks to see if the stack is empty
method : public : IsEmpty() ~ Bool
Return
Type | Description |
---|---|
Bool | true if empty, false otherwise |
Pop
Pops values from the stack
method : public : native : Pop(n:Int) ~ H
Parameters
Name | Type | Description |
---|---|---|
n | Int | number of items to pop |
Return
Type | Description |
---|---|
H | popped valued, Nil if stack is empty |
Pop
Pops a value from the stack
method : public : Pop() ~ H
Return
Type | Description |
---|---|
H | popped valued, Nil if stack is empty |
Push
Pushes a value onto the stack
method : public : Push(value:H) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | H | to push |