Fix hashheap

This commit is contained in:
Lars Mueller 2022-01-19 17:17:07 +01:00
parent e3ef255bf5
commit 4a9fa41827

@ -13,7 +13,7 @@ function less_than(a, b)
end end
--> empty, duplicate-free min heap with priority queue functionality --> empty, duplicate-free min heap with priority queue functionality
function table_heap.new(less_than) function new(less_than)
return setmetatable({ less_than = less_than, indices = {} }, metatable) return setmetatable({ less_than = less_than, indices = {} }, metatable)
end end