Function hi_sparse_bitset::reduce

source ·
pub fn reduce<Conf, Op, I>(
    op: Op,
    bitsets: I
) -> Option<Reduce<Op, I, Conf::DefaultCache>>
where Conf: Config, Op: BitSetOp, I: Iterator + Clone, I::Item: BitSetInterface<Conf = Conf>,
Expand description

Creates a lazy bitset, as bitsets iterator reduction.

“Reduce” term used in Rust’s Iterator::reduce sense.

If the bitsets is empty - returns None; otherwise - returns the resulting lazy bitset.

bitsets iterator must be cheap to clone (slice iterator is a good example). It will be cloned AT LEAST once for each returned DataBlock during iteration.

§Safety

Panics, if Config::DefaultCache capacity is smaller then sets len.