RoaringBitmap / RoaringBitmap/roaring-rs
Get element by index
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 957
- Forks
- 119
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 1
Description
It's not the first time that I need a function to get element(s) by index in a roaring bitmap.
The main functions that I could have used are;
nth(n: u32) -> u32=> returns the element at thenpositionfirst_n(n: u32) -> RoaringBitmap=> returns the firstnelementslast_n(n: u32) -> RoaringBitmap=> returns the lastnelements
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by locating the RoaringBitmap implementation and any existing iteration or element-access tests. Define and verify nth, first_n, and last_n for the requested index-based behavior; done means all three APIs are covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100