forked from pyrex/chameleonic
main #21
@ -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