dequeue

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dequeue

type Dequeue[T any] interface {
	Tail() (val Iterator[T])
	Head() (val Iterator[T])
	Length() (res int64)
	SafePopFront() (val T)
	PopFront() (val T)
	SafePopBack() (val T)
	PopBack() (val T)
	SafePushFront(val T)
	PushFront(val T)
	SafePushBack(val T)
	PushBack(val T)
}

func New

func New[T any]() Dequeue[T]

type Iterator

type Iterator[T any] interface {
	Next() Iterator[T]
	Prev() Iterator[T]
	Value() T
}

Jump to

Keyboard shortcuts

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