MCPcopy Create free account
hub / github.com/betty200744/ultimate-go / IsEmpty

Method IsEmpty

algorithms/data-structures/queue/queue.go:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 return queue
30}
31func (q *Queue) IsEmpty() bool {
32 return len(q.queue) == 0
33}
34func (q *Queue) Peek() (interface{}, bool) {
35 if len(q.queue) == 0 {
36 return nil, false

Callers 1

Test_QueueFunction · 0.45

Calls

no outgoing calls

Tested by 1

Test_QueueFunction · 0.36