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

Method not

arraycontainer.go:166–171  ·  view source on GitHub ↗

flip the values in the range [firstOfRange,endx)

(firstOfRange, endx int)

Source from the content-addressed store, hash-verified

164
165// flip the values in the range [firstOfRange,endx)
166func (ac *arrayContainer) not(firstOfRange, endx int) container {
167 if firstOfRange >= endx {
168 return ac.clone()
169 }
170 return ac.notClose(firstOfRange, endx-1) // remove everything in [firstOfRange,endx-1]
171}
172
173// flip the values in the range [firstOfRange,lastOfRange]
174func (ac *arrayContainer) notClose(firstOfRange, lastOfRange int) container {

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.95
notCloseMethod · 0.95

Tested by

no test coverage detected