forked from pyrex/chameleonic
Remove inorder
This commit is contained in:
parent
9b1fc9ac94
commit
617e7b3948
@ -122,15 +122,6 @@ function sgn0(x)
|
|||||||
return x!=0 and sgn(x) or 0
|
return x!=0 and sgn(x) or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function inorder(tbl)
|
|
||||||
local prev
|
|
||||||
for v in all(tbl) do
|
|
||||||
if (prev and v < prev) return
|
|
||||||
prev = v
|
|
||||||
end
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
function _mnmx(x,y)
|
function _mnmx(x,y)
|
||||||
if (x>y)return y,x
|
if (x>y)return y,x
|
||||||
return x,y
|
return x,y
|
||||||
|
Loading…
Reference in New Issue
Block a user