]> gitweb.factorcode.org Git - factor.git/commitdiff
math.functions: cleaner rect>.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 10 Aug 2012 22:51:11 +0000 (15:51 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 10 Aug 2012 22:51:11 +0000 (15:51 -0700)
basis/math/functions/functions.factor

index c21586f9cc636c908f1ebf1ca76dc3b96d949581..b94effa2977ca4f5e181d5863570d22a53c51ca3 100644 (file)
@@ -8,7 +8,7 @@ IN: math.functions
     [ numerator ] [ denominator ] bi ; inline
 
 : rect> ( x y -- z )
-    dup 0 = [ drop ] [ complex boa ] if ; inline
+    [ complex boa ] unless-zero ; inline
 
 GENERIC: sqrt ( x -- y ) foldable