Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
func
(q *Queue) Dequeue() MyItem {
20
first := q.list[0]
21
q.list = q.list[1:]
22
return
first
23
}
24
25
func
main() {
26
q := NewQueue()
Callers
1
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected