vector: get rid of lexical comparisons

This commit is contained in:
Lars Mueller 2022-06-17 11:15:24 +02:00
parent c50410a81e
commit c14c208a61

@ -70,24 +70,6 @@ end
metatable.__eq = equals
function less_than(v, w)
for k, v in pairs(v) do
if v >= w[k] then return false end
end
return true
end
metatable.__lt = less_than
function less_or_equal(v, w)
for k, v in pairs(v) do
if v > w[k] then return false end
end
return true
end
metatable.__le = less_or_equal
function combine(v, w, f)
local new_vector = {}
for key, value in pairs(v) do