-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Array-like methods and reverse iterator (#52)
New class RoaringBitmap32ReverseIterator Copy On Write (COW) always enabled - this can improve performance and reduce memory usage this.reverseIterator(): RoaringBitmap32ReverseIterator RoaringBitmap32.of(1, 2, 3 ...) this.indexOf(value:number, startIndex?:number): number and this.lastIndexOf(value:number, startIndex?:number) this.at(index:number): number Array methods: some, reduce, reduceRight, find, findIndex, filter, toSorted, toReversed varargs for add, tryAdd, remove, delete Update to roaring 1.1.2 BREAKING: map and forEach were not implemented correctly and were not behaving like array.map and array.forEach on the index argument. This is fixed now and index is the index of the item in the set.
- Loading branch information
1 parent
8b4a626
commit 1b476d8
Showing
26 changed files
with
2,444 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import roaring from "."; | ||
|
||
/** | ||
* Iterator class for RoaringBitmap32 | ||
* | ||
* @type {roaring.RoaringReverseBitmap32} | ||
*/ | ||
export = roaring.RoaringBitmap32ReverseIterator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("./index").RoaringBitmap32ReverseIterator; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.