Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[E any] struct { // contains filtered or unexported fields }
Queue is generic FIFO queue.
func (*Queue[E]) Peek ¶
func (q *Queue[E]) Peek() E
Peek returns the first element in the queue. Peek panics if the queue is empty.
func (*Queue[E]) Pop ¶
func (q *Queue[E]) Pop() E
Pop removes and returns the first element from the queue. Pop panics if the queue is empty.
Click to show internal directories.
Click to hide internal directories.