Skip to content

Instantly share code, notes, and snippets.

@Mizzlr
Created June 16, 2016 08:52
Show Gist options
  • Save Mizzlr/ce41d0aea578f0b201e87c56108c05cf to your computer and use it in GitHub Desktop.
Save Mizzlr/ce41d0aea578f0b201e87c56108c05cf to your computer and use it in GitHub Desktop.
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