From 4a9fa418273bc22cb64965f0fccf8c42dbc85181 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Wed, 19 Jan 2022 17:17:07 +0100 Subject: [PATCH] Fix hashheap --- hashheap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashheap.lua b/hashheap.lua index 5917b54..2b4e346 100644 --- a/hashheap.lua +++ b/hashheap.lua @@ -13,7 +13,7 @@ function less_than(a, b) end --> 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) end