MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / iterate

Method iterate

arraycontainer.go:41–51  ·  view source on GitHub ↗
(cb func(x uint16) bool)

Source from the content-addressed store, hash-verified

39}
40
41func (ac *arrayContainer) iterate(cb func(x uint16) bool) bool {
42 iterator := shortIterator{ac.content, 0}
43
44 for iterator.hasNext() {
45 if !cb(iterator.next()) {
46 return false
47 }
48 }
49
50 return true
51}
52
53func (ac *arrayContainer) getShortIterator() shortPeekable {
54 return &shortIterator{ac.content, 0}

Callers

nothing calls this directly

Calls 2

hasNextMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected