Skip to content

Instantly share code, notes, and snippets.

@scalolli
Last active May 31, 2018 06:23
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 scalolli/9f7836123b77f10ac43d72ca3a08bf09 to your computer and use it in GitHub Desktop.
Save scalolli/9f7836123b77f10ac43d72ca3a08bf09 to your computer and use it in GitHub Desktop.
Functor and Applicatives for Functions
fmap (*2) (+1) $ 1
so that returns 4
But why can I not do
(fmap (*2) (+)) 1 2 ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment