Last active
July 5, 2016 15:08
-
-
Save rexcfnghk/f10dcc247384d4f8f036f537b3602c2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (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