Stack
Growable stack of generics
Operations
IsEmpty
Checks to see if the stack is empty
method : public : IsEmpty() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if empty, false otherwise |
Pop
Pops values from the stack
method : public : native : Pop(n:Int) ~ HParameters
| 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() ~ HReturn
| Type | Description |
|---|---|
| H | popped valued, Nil if stack is empty |
Push
Pushes a value onto the stack
method : public : Push(value:H) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | H | to push |