fixed size set for JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
test
.eslintrc.yml
.gitignore
.jsbeautifyrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

fixed-set

fixed size set for JavaScript

Build Status Coverage Status npm version npm downloads npm license

Install

$ npm i fixed-set --save

API

const FixedSet = require('fixed-set');
const max = 10; // the capcity
const s = new FixedSet(max);

queue

const s = new FixedSet(2);
s.add(1).add(2);
s.queue(3).then(i => {
  // blabla
});

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org