stack

package
v0.0.0-...-d5bd7e4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 0 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[E comparable] struct {
	// contains filtered or unexported fields
}

func NewStack

func NewStack[E comparable]() *Stack[E]

func (*Stack[E]) Empty

func (s *Stack[E]) Empty() bool

func (*Stack[E]) IndexOf

func (s *Stack[E]) IndexOf(e E) int

func (*Stack[E]) Len

func (s *Stack[E]) Len() int

func (*Stack[E]) Peek

func (s *Stack[E]) Peek() (E, bool)

func (*Stack[E]) Pop

func (s *Stack[E]) Pop() (E, bool)

func (*Stack[E]) Push

func (s *Stack[E]) Push(e E)

Jump to

Keyboard shortcuts

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