MCPcopy
hub / github.com/RoaringBitmap/roaring / Values

Function Values

iter.go:8–17  ·  view source on GitHub ↗

Values returns an iterator that yields the elements of the bitmap in increasing order. Starting with Go 1.23, users can use a for loop to iterate over it.

(b *Bitmap)

Source from the content-addressed store, hash-verified

6// increasing order. Starting with Go 1.23, users can use a for loop to iterate
7// over it.
8func Values(b *Bitmap) iter.Seq[uint32] {
9 return func(yield func(uint32) bool) {
10 it := b.Iterator()
11 for it.HasNext() {
12 if !yield(it.Next()) {
13 return
14 }
15 }
16 }
17}
18
19// Backward returns an iterator that yields the elements of the bitmap in
20// decreasing order. Starting with Go 1.23, users can use a for loop to iterate

Callers 7

TestBackwardCount123Function · 0.70
TestValues123Function · 0.70
BenchmarkIterator123Function · 0.70
TestBackwardCountFunction · 0.70
TestBackwardFunction · 0.70
TestValuesFunction · 0.70
BenchmarkIteratorAllocFunction · 0.70

Calls 3

HasNextMethod · 0.65
NextMethod · 0.65
IteratorMethod · 0.45

Tested by 7

TestBackwardCount123Function · 0.56
TestValues123Function · 0.56
BenchmarkIterator123Function · 0.56
TestBackwardCountFunction · 0.56
TestBackwardFunction · 0.56
TestValuesFunction · 0.56
BenchmarkIteratorAllocFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…