queue

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: AGPL-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 LLQueue

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

func NewLLQueue

func NewLLQueue[T any]() *LLQueue[T]

func (*LLQueue[T]) Empty

func (llq *LLQueue[T]) Empty() bool

func (*LLQueue[T]) Pop

func (llq *LLQueue[T]) Pop() (T, bool)

func (*LLQueue[T]) Push

func (llq *LLQueue[T]) Push(elem T)

func (*LLQueue[T]) Size

func (llq *LLQueue[T]) Size() int

type LLQueueNode

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

type Queue

type Queue[T any] interface {
	Pop() (T, bool)
	Push(elem T)
	Empty() bool
	Size() int
}

Jump to

Keyboard shortcuts

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