Last active
August 30, 2017 14:51
-
-
Save deque-blog/47990dc937d6791e3dd2047ef09ddd3b 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
satExample :: Bool | |
satExample = or $ do | |
x1 <- [True, False] -- "guess" is replaced by bind (<-) | |
x2 <- [True, False] | |
{- ... -} | |
xN <- [True, False] | |
pure (formula x1 x2 {- ... -} xN) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment