Implements a stack of Variant values.
Description
The CalculationStack class allows you to implement a stack of Variant values.
Methods
Length
Length
(c *CalculationStack) Length() int
- returns: int - length
Pop
Removes and returns the last value from the list.
(c *CalculationStack) Pop() *Variant
- returns: *Variant - the last value from the list.
PeekAt
Peeks a Variant value located at a specified index.
(c *CalculationStack) PeekAt(index int) *Variant
- index: int - a specified index.
- returns: *Variant - a Variant value located.
Peek
Peeks a Variant value.
(c *CalculationStack) Peek() *Variant
- returns: *Variant - a Variant value.