Skip to main content

bitmap_select

Function bitmap_select 

Source
pub fn bitmap_select<'t, T>(
    s: &'t BigUint,
    seq: &'t [T],
) -> impl Iterator<Item = &'t T>
Expand description

Select elements of seq which are marked by the bitmap s.

§Parameters

  • s - Bitmap where each bit represents whether to select the corresponding element
  • seq - Sequence of items to select from

§Returns

An iterator yielding selected elements from seq where the corresponding bit in s is set.