module refactoring
This commit is contained in:
+3
-2
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user