Skip to content

Instantly share code, notes, and snippets.

@7h3kk1d
Created January 31, 2020 22:56
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 7h3kk1d/52cd2549c51758b2a3a26376bc55cdcb to your computer and use it in GitHub Desktop.
Save 7h3kk1d/52cd2549c51758b2a3a26376bc55cdcb to your computer and use it in GitHub Desktop.
Prelude> [\x -> x + 1, \x -> x -1] <*> [1,2]
[2,3,0,1]
Prelude> [1,2] >>= \y -> [y+1, y-1]
[2,0,3,1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment