MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / DeQueue

Function DeQueue

structure/queue/queuearray.go:20–24  ·  view source on GitHub ↗

DeQueue it will be removed the first value that added into the list

()

Source from the content-addressed store, hash-verified

18
19// DeQueue it will be removed the first value that added into the list
20func DeQueue() any {
21 data := ListQueue[0]
22 ListQueue = ListQueue[1:]
23 return data
24}
25
26// FrontQueue return the Front value
27func FrontQueue() any {

Callers 1

TestQueueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.68