forked from pyrex/chameleonic
Golf sgn0
This commit is contained in:
parent
94e4aea20b
commit
ed25ef0f94
@ -93,8 +93,7 @@ function _apply(x,ts,a)
|
||||
end
|
||||
|
||||
function sgn0(x)
|
||||
if (x==0) return x
|
||||
return sgn(x)
|
||||
return x!=0 and sgn(x) or 0
|
||||
end
|
||||
|
||||
function _mnmx(x,y)
|
||||
|
Loading…
Reference in New Issue
Block a user