Documentation ¶
Overview ¶
Package stack implements a stack of VType values.
Index ¶
- type Stack
- func (k *Stack) Clear()
- func (k *Stack) Empty() bool
- func (k *Stack) Peek(n int) []types.VType
- func (k *Stack) Pop() types.VType
- func (k *Stack) PopString() *vstring.VString
- func (k *Stack) Push(s types.VType)
- func (k *Stack) Size() int
- func (k Stack) String() string
- func (k *Stack) Top() types.VType
- func (k Stack) TruncatedString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
func (*Stack) PopString ¶
PopString takes the top element from the Stack and returns the string value of it.
func (Stack) TruncatedString ¶
TruncatedString returns a string representation of the Stack showing only the top 7 (or less) values.
Click to show internal directories.
Click to hide internal directories.