class Crystalline::Containers::MaxHeap(K, V)
Defined in:
containers/heap.cr
Constructors
Instance Method Summary
<<(key : K)
<<,
change_key(key : K, new_key : K)
change_key,
clear
clear,
delete(key)
delete,
delete_key(key)
delete_key,
empty?
empty?,
has_key?(key)
has_key?,
merge!(other_heap : Heap(K, V))
merge!,
next
next,
next_key
next_key,
pop
pop,
push(key : K, value = key)
push,
size
size
new(comparator : K, K -> Bool = ->(x : K, y : K) do
(x <=> y) == -1
end)
new
Constructor Detail
Instance Method Detail