Skip to content

Get element by index #252

@irevoire

Description

@irevoire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions