package
Version:
v0.0.0-...-c234f5e
Opens a new window with list of versions in this module.
Published: Mar 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Queue An FIFO queue.
IsEmpty Returns if the queue is empty or not.
Pop element from head.
q := Queue{1}
q.Push(2)
q.Push(3)
fmt.Println(q.Pop())
fmt.Println(q.Pop())
fmt.Println(q.IsEmpty())
fmt.Println(q.Pop())
fmt.Println(q.IsEmpty())
Output:
1
2
false
3
true
Push the element into the queue.
e.g. q.Push(123)
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.