package
Version:
v0.102.0
Opens a new window with list of versions in this module.
Published: Mar 27, 2024
License: Apache-2.0
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
¶
type Queue[T any] struct {
}
func (sq *Queue[T]) Append(elems ...T)
Append adds new elements to the queue.
Copy returns a copy of the queue.
IsEmpty returns true if the queue is empty.
Len returns the length of the queue.
Peek returns the first element of the queue without removing it.
Returns an error if called on an empty queue.
Pop returns the first element and removes it from the queue.
Returns an error if called on an empty queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.