Commit 656292b5 authored by nanahira's avatar nanahira

fix format

parent 942fcd92
...@@ -60,25 +60,25 @@ function Auxiliary.FALSE() ...@@ -60,25 +60,25 @@ function Auxiliary.FALSE()
end end
function Auxiliary.AND(...) function Auxiliary.AND(...)
local function_list={...} local function_list={...}
return function(...) return function(...)
local res=false local res=false
for i,f in ipairs(function_list) do for i,f in ipairs(function_list) do
res=f(...) res=f(...)
if not res then return res end if not res then return res end
end end
return res return res
end end
end end
function Auxiliary.OR(...) function Auxiliary.OR(...)
local function_list={...} local function_list={...}
return function(...) return function(...)
local res=false local res=false
for i,f in ipairs(function_list) do for i,f in ipairs(function_list) do
res=f(...) res=f(...)
if res then return res end if res then return res end
end end
return res return res
end end
end end
function Auxiliary.NOT(f) function Auxiliary.NOT(f)
return function(...) return function(...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment