Last active
August 26, 2017 19:17
-
-
Save deque-blog/bf2ed182afc45a23430c0a7deabb13f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sat :: SAT -> Bool | |
sat pb = or $ do | |
assignment <- forM (allVars pb) $ \var -> do | |
val <- [True, False] | |
pure (var, val) | |
pure (evalSat assignment pb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment