Created
June 16, 2016 08:52
-
-
Save Mizzlr/ce41d0aea578f0b201e87c56108c05cf 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
function boolify (churchBoolean) { | |
return churchBoolean (function (_) { return true; }) | |
( function (_) { return false; }); | |
// function had to have one input argument | |
// because that is what is expected by TRUE or FALSE | |
// example | |
boolify(TRUE) // returns true | |
boolify(FALSE) // return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment