Skip to content

Instantly share code, notes, and snippets.

@rexcfnghk
Last active July 5, 2016 15:08
Show Gist options
  • Save rexcfnghk/f10dcc247384d4f8f036f537b3602c2b to your computer and use it in GitHub Desktop.
Save rexcfnghk/f10dcc247384d4f8f036f537b3602c2b to your computer and use it in GitHub Desktop.
// (int -> int)
let addOne = (+) 1
// Analogous to the above
let addOne x = 1 + x
// Analogous to the above as well
let addOne x = (+) 1 x
// Eta-reduction of the above
let addOne = (+) 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment