diff options
author | Camil Staps | 2016-01-17 14:37:52 +0100 |
---|---|---|
committer | Camil Staps | 2016-01-17 14:37:52 +0100 |
commit | a48abd0a82037082c6974dc87e97b8a1122221f8 (patch) | |
tree | d28b5e25701ba43d9827b1f144e263055c5a9ebb /Logic.icl | |
parent | Fixing last commit; parentheses chained implications (diff) |
Fixed bug where atom options were duplicated
Diffstat (limited to 'Logic.icl')
-rw-r--r-- | Logic.icl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ simple_truthtable :: Expr -> TruthTable simple_truthtable e = {exprs = [Atom a \\ a <- all_atoms e] ++ [e], options = all_atom_options e} simple_truthtable_n :: [Expr] -> TruthTable // Simple truthtable with multiple expressions -simple_truthtable_n es = {exprs = removeDup ([Atom a \\ a <- flatten (map all_atoms es)] ++ es), options = flatten (map all_atom_options es)} +simple_truthtable_n es = {exprs = removeDup ([Atom a \\ a <- flatten (map all_atoms es)] ++ es), options = removeDup (flatten (map all_atom_options es))} truthtable :: Expr -> TruthTable truthtable e = {exprs = sorted_subexprs e ++ [e], options = all_atom_options e} |