Documentation
¶
Overview ¶
A queue gives you a FIFO or first-in firs-out order. The element you inserted first is also the first one to come out again.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue is a FIFO (first-in first-out) list
func (*Queue[T]) Enqueue ¶
func (q *Queue[T]) Enqueue(item T)
Enqueue puts a given item at the back of the queue
Click to show internal directories.
Click to hide internal directories.