package
Version:
v0.12.6
Opens a new window with list of versions in this module.
Published: Oct 16, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package queues offers various utilities for handling and manipulating
queues data structures.
Dequeue removes a value from the front of a queue.
func Enqueue[T any](q *Queue[T], value *T)
Enqueue adds a value to the end of a queue.
Peek returns the first element of the queue without removing it.
Size returns the number of elements in the queue.
type Queue[T any] struct {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.