dequeue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDequeueIsEmpty = errors.New("dequeue is empty")

Functions

func New

func New[T any]() *dequeue[T]

Types

type Dequeue

type Dequeue[T any] interface {
	Size() uint
	GetAll() []T
	PushHead(data T)
	PopHead() (T, error)
	GetHead() (T, error)
	PushTail(data T)
	PopTail() (T, error)
	GetTail() (T, error)
	Clear()
}

Jump to

Keyboard shortcuts

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