stack

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL