stack

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 3 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[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any]() *Stack[V]

func (*Stack[V]) Length

func (s *Stack[V]) Length() int

func (*Stack[V]) Peek

func (s *Stack[V]) Peek() V

func (*Stack[V]) Pop

func (s *Stack[V]) Pop() V

func (*Stack[V]) Push

func (s *Stack[V]) Push(value V)

func (*Stack[V]) String

func (s *Stack[V]) String() string

Jump to

Keyboard shortcuts

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