mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 00:33:44 +01:00
Fix hashheap
This commit is contained in:
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user