]> gitweb.factorcode.org Git - factor.git/commitdiff
boolean-expr: eliminate double negations
authorAlexander Ilin <alex.ilin@protonmail.com>
Mon, 3 Jan 2022 20:12:22 +0000 (21:12 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 3 Jan 2022 20:24:55 +0000 (12:24 -0800)
extra/boolean-expr/boolean-expr.factor

index 46449d74868d9f86fd86d08b7062dd061db43b57..a0b54caddfe19db1c2a59793cf04a11588e820da 100644 (file)
@@ -40,7 +40,7 @@ GENERIC: ¬ ( x -- expr )
 
 METHOD: ¬ { ⊤ } drop ⊥ ;
 METHOD: ¬ { ⊥ } drop ⊤ ;
-
+METHOD: ¬ { ¬ } x>> ;
 METHOD: ¬ { ⋀ } [ x>> ¬ ] [ y>> ¬ ] bi ⋁ ;
 METHOD: ¬ { ⋁ } [ x>> ¬ ] [ y>> ¬ ] bi ⋀ ;