https://github.com/distributedlife/inconsequence
Provides an ever increasing sequence of numbers. Probably the most exciting package eva.
https://github.com/distributedlife/inconsequence
Last synced: about 2 months ago
JSON representation
Provides an ever increasing sequence of numbers. Probably the most exciting package eva.
- Host: GitHub
- URL: https://github.com/distributedlife/inconsequence
- Owner: distributedlife
- Created: 2015-04-11T06:19:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T12:24:08.000Z (over 9 years ago)
- Last Synced: 2025-02-21T16:09:04.213Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# inconsequence
Tools for making sequences.
Currently supported:
- linear
- fibonacci
PR's welcome for more sequences.
# Usage
```javascript
import { linear, fibonacci } from 'inconsequence';
linear('my-key'); //1
linear('my-key'); //2
linear('different-key'); //1
fibonacci('my-key'); //1
fibonacci('my-key'); //1
fibonacci('my-key'); //2
fibonacci('my-key'); //3
fibonacci('my-key'); //5
fibonacci('my-key'); //8
fibonacci('different-key'); //1
```