]> gitweb.factorcode.org Git - factor.git/commitdiff
boolean-expr: shorten some code 1912/head
authorAlexander Iljin <ajsoft@yandex.ru>
Mon, 22 Jan 2018 02:12:32 +0000 (03:12 +0100)
committerAlexander Iljin <ajsoft@yandex.ru>
Mon, 22 Jan 2018 02:13:11 +0000 (03:13 +0100)
extra/boolean-expr/boolean-expr.factor

index b35cd447398c5226137b41ef4fe5c9dfe29fc3b8..46449d74868d9f86fd86d08b7062dd061db43b57 100644 (file)
@@ -67,7 +67,7 @@ METHOD: satisfiable? { ⊥ } drop f ;
 
 ! See if there is a term along with its negation in the conjunction seq.
 : (satisfiable?) ( seq -- ? )
-    [ \ ¬ instance? ] partition swap [ x>> ] map intersect empty? ;
+    [ ¬? ] partition swap [ x>> ] map intersect empty? ;
 
 METHOD: satisfiable? { □ }
     dnf [ (satisfiable?) ] any? ;