latex truth table: fix counting
This commit is contained in:
parent
f044938d74
commit
68bc86c496
1 changed files with 1 additions and 1 deletions
2
Main.hs
2
Main.hs
|
@ -139,7 +139,7 @@ bucket s
|
|||
values = [fromJust $ eval assignments s | assignments <- enumerate $ atomsList]
|
||||
|
||||
enumerate :: [a] -> [[(a, Bool)]]
|
||||
enumerate keys = aux start
|
||||
enumerate keys = map reverse $ aux start
|
||||
where
|
||||
aux assignments = (assignments:) $
|
||||
case next assignments of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue