MCPcopy Index your code
hub / github.com/arnauddri/algorithms / Peek

Method Peek

data-structures/queue/queue.go:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (q *Queue) Peek() interface{} {
54 q.lock.Lock()
55 defer q.lock.Unlock()
56
57 return q.queue[0]
58}

Callers 1

TestNewFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.36