Last active
December 18, 2015 07:48
-
-
Save hughfdjackson/5748828 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
| var OR = function(a, b){ | |
| return function(val){ return a(val) || b(val) } | |
| } | |
| var AND = function(a, b){ | |
| return function(val){ return a(val) && b(val) } | |
| } | |
| var XOR = function(a, b){ | |
| return function(val){ return !a(val) === b(val) } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment