MCPcopy Create free account
hub / github.com/GoTurkiye/training / Dequeue

Method Dequeue

301-algorithms/linear-lists/queue/queue.go:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (q *Queue) Dequeue() MyItem {
20 first := q.list[0]
21 q.list = q.list[1:]
22 return first
23}
24
25func main() {
26 q := NewQueue()

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected