forked from pyrex/chameleonic
Golf sgn0
This commit is contained in:
1 parent
94e4aea20b
commit
ed25ef0f94
1 file changed
+1
-2
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user