Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active August 30, 2017 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/47990dc937d6791e3dd2047ef09ddd3b to your computer and use it in GitHub Desktop.
Save deque-blog/47990dc937d6791e3dd2047ef09ddd3b to your computer and use it in GitHub Desktop.
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