# File lib/facets/more/pqueue.rb, line 168 def pop return nil if empty? res = @qarray[1] @qarray[1] = @qarray[@size] @size -= 1 downheap(1) return res end