@progstream/cantor-pairing
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

cantor-pairing

The Cantor pairing function is a primitive recursive pairing function.

Installation

npm i @progstream/cantor-pairing

Usage

import pairing from '@progstream/cantor-pairing'

pairing.pair(3, 8)
// 74

pairing.unpair(74)
// [3, 8]

Readme

Keywords

Package Sidebar

Install

npm i @progstream/cantor-pairing

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

2.94 kB

Total Files

5

Last publish

Collaborators

  • mmonisamjad
  • jazibjafri