Created
March 20, 2016 11:30
-
-
Save UndergroundLabs/23a0fc56710c0337025c 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
IF = function(cond) { | |
return function(thn) { | |
return function(els) { | |
return cond(thn)(els); | |
} | |
} | |
} | |
tru = function(thn) { | |
return function(els) { | |
return thn; | |
} | |
} | |
fls = function(thn) { | |
return function(els) { | |
return els; | |
} | |
} | |
console.log(IF(fls)(1)(0)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with:
nodejs lambda.js