queue

package
v0.0.0-...-81dff9f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 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 Queue

type Queue[TItem any] interface {
	collection.Collection[TItem]

	// Enqueue appends an item to the end of the queue
	Enqueue(TItem)

	// Dequeue removes and returns the first item in
	// the queue
	Dequeue() *TItem
}

Queue provides the required methods of the queue data structure

Jump to

Keyboard shortcuts

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