]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/boolean-expr/boolean-expr.factor
boolean-expr: fix the implication implementation
[factor.git] / extra / boolean-expr / boolean-expr.factor
index a0b54caddfe19db1c2a59793cf04a11588e820da..0f8c5b1091241657a0a90158126a79598ad1dbde 100644 (file)
@@ -46,7 +46,7 @@ METHOD: ¬ { ⋁ } [ x>> ¬ ] [ y>> ¬ ] bi ⋀ ;
 
 METHOD: ¬ { □ } \ ¬ boa ;
 
-: → ( x y -- expr ) ¬ ⋀ ;
+: → ( x y -- expr ) swap ¬ ⋁ ;
 : ⊕ ( x y -- expr ) [ ⋁ ] [ ⋀ ¬ ] 2bi ⋀ ;
 : ≣ ( x y -- expr ) [ ⋀ ] [ [ ¬ ] bi@ ⋀ ] 2bi ⋁ ;