Skip to content

Instantly share code, notes, and snippets.

@lucassmagal
Created April 29, 2013 18:43
Show Gist options
  • Save lucassmagal/5483741 to your computer and use it in GitHub Desktop.
Save lucassmagal/5483741 to your computer and use it in GitHub Desktop.
a = do
x <- [3..4]
[1..2]
return (x, 42)
a = [3..4] >>= \x ->
[1..2] >>= \_ ->
return (x, 42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment