algo

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 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 ClampStack

type ClampStack[T any] struct {
	// contains filtered or unexported fields
}

func NewClampStack

func NewClampStack[T any](initCapacity int) *ClampStack[T]

func (*ClampStack[T]) Clear

func (s *ClampStack[T]) Clear()

func (*ClampStack[T]) IsEmpty

func (s *ClampStack[T]) IsEmpty() bool

func (*ClampStack[T]) Peek

func (s *ClampStack[T]) Peek() T

func (*ClampStack[T]) Pop

func (s *ClampStack[T]) Pop() T

func (*ClampStack[T]) Push

func (s *ClampStack[T]) Push(v T)

func (*ClampStack[T]) Size

func (s *ClampStack[T]) Size() int

Jump to

Keyboard shortcuts

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