<pre><codeclass="python language-python hljs"><deque>.appendleft(<el>)<spanclass="hljs-comment"># Opposite element is dropped if full.</span>
<el> = <deque>.popleft()<spanclass="hljs-comment"># Raises IndexError if empty.</span>