an_item_from_the_head_of_the_priority_queue.">Take an item from the head of the priority queue.</a></h4>
  O(1) amortized, O(N) worst case</p>

<h3 class="function"><a name="out-2">out/2</a></h3>
<div class="spec">
<p><tt>out(P::integer(), Q::<a href="#type-pqueue">pqueue()</a>) -&gt; {{value, term()}, <a href="#type-pqueue">pqueue()</a>} | {empty, <a href="#type-pqueue">pqueue()</a>}</tt><br></p>
</div><p>
  <h4><a name="Take_an_item_of_a_specific_priority_from_the_head_of_the_queue.">Take an item of a spe