Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/satExample.hs

Last active Aug 30, 2017
Embed
What would you like to do?
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