lib/garcon/task/priority_queue.rb
# Retrieves and removes the head of this queue, or returns `nil` if this
# queue is empty.
#
# @return [Object]
#   The head of the queue or `nil` when empty.
#
Retrieves and removes the head of this queue, or returns `nil` if this
queue is empty.
Retrieves and removes the head of this queue or returns ` nil ` if this queue is empty .
def pop
      max = @queue[1]
      swap(1, @length)
      @length -= 1
      sink(1)
      @queue.pop
      max
    end
def pop max = @queue [ 1 ] swap ( 1 , @length ) @length -= 1 sink ( 1 ) @queue . pop max end
Retrieves and removes the head of this queue, or returns `nil` if this
queue is empty.
Retrieves and removes the head of this queue or returns ` nil ` if this queue is empty .
The head of the queue or `nil` when empty.
The head of the queue or ` nil ` when empty .
Object