stack

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: GPL-3.0 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[T any] struct {
	// contains filtered or unexported fields
}

func (*Stack[T]) IsEmpty

func (stack *Stack[T]) IsEmpty() bool

func (*Stack[T]) Len

func (stack *Stack[T]) Len() int

func (*Stack[T]) Peek

func (stack *Stack[T]) Peek() T

func (*Stack[T]) Pop

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

func (*Stack[T]) PopLeft

func (stack *Stack[T]) PopLeft() T

func (*Stack[T]) Push

func (stack *Stack[T]) Push(value T)

func (*Stack[T]) PushLeft

func (stack *Stack[T]) PushLeft(value T)

func (*Stack[T]) Reverse

func (stack *Stack[T]) Reverse() *Stack[T]

func (*Stack[T]) Set

func (stack *Stack[T]) Set(values []T)

func (*Stack[T]) ToSlice

func (stack *Stack[T]) ToSlice() []T

Jump to

Keyboard shortcuts

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