Church Encoding in JavaScript.
- ifThenElse
- successor
- addition
- multiplication
- exponentiation
- predecessor
- subtraction
- trueExpression
- falseExpression
- andOperation
- orOperation
- notOperation
- xorOperation
- nandOperation
- xnorOperation
- norOperation
- isZero
- isLessOrEqual
- isGreaterOrEqual
- areEqual
- areNotEqual
- isLess
- isGreater
- churchToInteger
- integerToChurch
$ npm install --save church-encoding
var churchEncoding = require('church-encoding');
//=> Exposes all functions mentioned above