Deque.dequeue
Returns and remove the element at the front of the queue
Usage
dequeue()
Returns:
element
Element at the front of the queue
Example
from jellybeans.structures import Dequeq = Deque()for x in range(10): q.enqueue(x)q.dequeue()q.dequeue()q.dequeue()print(q.dequeue()) # 3print(q) # 4 -> 5 -> 6 -> 7 -> 8 -> 9