Documentation ¶ Index ¶ type Stack func New() *Stack func (stack *Stack) IsEmpty() bool func (stack *Stack) Items() iter.Seq2[int, any] func (stack *Stack) Len() int func (stack *Stack) Peek() any func (stack *Stack) Pop() any func (stack *Stack) Push(val any) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Stack ¶ type Stack struct { // contains filtered or unexported fields } func New ¶ func New() *Stack func (*Stack) IsEmpty ¶ func (stack *Stack) IsEmpty() bool func (*Stack) Items ¶ func (stack *Stack) Items() iter.Seq2[int, any] func (*Stack) Len ¶ func (stack *Stack) Len() int func (*Stack) Peek ¶ func (stack *Stack) Peek() any func (*Stack) Pop ¶ func (stack *Stack) Pop() any func (*Stack) Push ¶ func (stack *Stack) Push(val any) Source Files ¶ View all Source files stack.go Click to show internal directories. Click to hide internal directories.