bitset
bitset copied to clipboard
deprecated - check out https://github.com/infusion/BitSet.js instead!
A reasonably DRY implementation of the following methods: - http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#nextSetBit(int) - http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#nextClearBit(int) - http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#previousSetBit(int) - http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#previousClearBit(int) Need to write some unit tests, but has been manually tested, and all seems...
Hello, How "long" so to speak can the bitset be? I am considering a leap into JavaScript, React, Node, etc, and along with that, will need some sort of extensible...
``` clear: (pos) -> @store[@wordIndex(pos)] &= (0xFF ^ (1 @store[@wordIndex(pos)] &= (-1 ^ (1
The version that gets installed when typing `npm install bitset` (0.3.0) is broken. I had to type `npm install tdegrunt/bitset` to get a working distribution. Should be a matter of...
Hey, Thanks for sharing this code, really helpful! Just a quick observation about the andNot method. This function fails to pass the following test: ``` bitSet = new BitSet(); BitSet...
http://requirebin.com/?gist=3a6e57bacfbfeb34a66d ``` js var BitSet = require("bitset"); var s = new BitSet(); for (var i = 0; i
BitSet.prototype.store will never get executed you shouldn't add it to the prototype. I didn't realize this was coffeescript not JavaScript, I managed to find out what was it's coffeescript equivalent