Documentation ¶
Index ¶
Constants ¶
View Source
const (
// InitialLabelStackHeight is the initial length of stack
InitialLabelStackHeight = 10
)
View Source
const (
// InitialOperandStackHeight is the initial length of the OperandStack
InitialOperandStackHeight = 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
func NewOperandStack ¶
NewOperandStack creates a new OperandStack with no limit
func (*Stack[T]) Peek ¶
func (s *Stack[T]) Peek() T
Peek will return the value on current Ptr like Pop but Ptr does not get backspace
Click to show internal directories.
Click to hide internal directories.