1.0.1 • Published 10 years ago

church-encoding v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago