1.0.1 • Published 9 years ago

church-encoding v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

church-encoding

npm version Build Status Dependency Status

Church Encoding in JavaScript.

Operations available

  • ifThenElse

Arithmetical

  • successor
  • addition
  • multiplication
  • exponentiation
  • predecessor
  • subtraction

Logical

  • trueExpression
  • falseExpression
  • andOperation
  • orOperation
  • notOperation
  • xorOperation
  • nandOperation
  • xnorOperation
  • norOperation

Predicates

  • isZero
  • isLessOrEqual
  • isGreaterOrEqual
  • areEqual
  • areNotEqual
  • isLess
  • isGreater

Helpers

  • churchToInteger
  • integerToChurch

Install

$ npm install --save church-encoding

Usage

var churchEncoding = require('church-encoding');

//=> Exposes all functions mentioned above
1.0.1

9 years ago

1.0.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago