Keeps an heap sorted with the largest element on top
Methods
Public Class methods
[ show source ]
# File lib/facets/more/heap.rb, line 68 def initialize(array=[]) super(array) end
Public Instance methods
[ show source ]
# File lib/facets/more/heap.rb, line 70 def cmp(a,b) a > b end