Skip to content

Instantly share code, notes, and snippets.

@nkpart
Last active September 23, 2015 05:25
Show Gist options
  • Save nkpart/13ccd22a44c539d1db28 to your computer and use it in GitHub Desktop.
Save nkpart/13ccd22a44c539d1db28 to your computer and use it in GitHub Desktop.

replace $ with (), and reverse

f $ y 3
f (y 3)

change let to bind, and reverse

let x = f 3
x <- f 3

inline let

let x = 3
    y = f x

let y = f 3

change fmap to bind and return

f <$> x
do z <- x
   f z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment