Created
April 17, 2017 11:32
-
-
Save sudodoki/d9a24078f6c0dc3e70dfe7fd2cafbf54 to your computer and use it in GitHub Desktop.
This file contains 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
const pair = (x, y) => f => f(x, y) | |
const head = (f) => f(x => x) | |
const tail = (f) => f((_, x) => x) | |
var a = pair(5, 10) | |
head(a) | |
tail(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment