MCPcopy
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / enqueue

Method enqueue

Queue.py:8–9  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

6 return self.items == []
7
8 def enqueue(self, item):
9 self.items.insert(0, item)
10
11 def dequeue(self):
12 return self.items.pop()

Callers 2

hotPotatoFunction · 0.95
Queue.pyFile · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected