stack

package
v0.0.0-...-6871db2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyStack = errors.New("stack is empty")

Functions

This section is empty.

Types

type Stack

type Stack[T any] []T

func (Stack[T]) IsEmpty

func (st Stack[T]) IsEmpty() bool

func (Stack[T]) Len

func (st Stack[T]) Len() uint

func (Stack[T]) Peek

func (st Stack[T]) Peek() T

func (*Stack[T]) Pop

func (st *Stack[T]) Pop() T

func (*Stack[T]) Push

func (st *Stack[T]) Push(item T)

Jump to

Keyboard shortcuts

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