module refactoring

This commit is contained in:
Simon Hirsig
2017-11-01 15:01:41 +01:00
parent 9989ceb42f
commit 8823b34904
36 changed files with 669 additions and 646 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
module 'aux.util.sort'
include 'T'
include 'aux'
local T = require 'T'
M.EQ = 0
M.LT = 1
M.GT = 2
@@ -17,7 +18,7 @@ function M.compare(a, b, desc)
end
end
M.multi_lt = vararg-function(arg)
M.multi_lt = T.vararg-function(arg)
for i = 1, getn(arg), 2 do
if arg[i] and arg[i + 1] and arg[i] ~= arg[i + 1] then
return arg[i] < arg[i + 1]