RoaringBitmap / RoaringBitmap/roaring-rs

Get element by index

Open
#252 2 comments 1 reaction 0 assignees View on GitHub

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 the n position
  • first_n(n: u32) -> RoaringBitmap => returns the first n elements
  • last_n(n: u32) -> RoaringBitmap => returns the last n elements

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.