MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / andNotArray

Method andNotArray

arraycontainer.go:765–772  ·  view source on GitHub ↗
(value2 *arrayContainer)

Source from the content-addressed store, hash-verified

763}
764
765func (ac *arrayContainer) andNotArray(value2 *arrayContainer) container {
766 value1 := ac
767 desiredcapacity := value1.getCardinality()
768 answer := newArrayContainerCapacity(desiredcapacity)
769 length := difference(value1.content, value2.content, answer.content)
770 answer.content = answer.content[:length]
771 return answer
772}
773
774func (ac *arrayContainer) iandNotArray(value2 *arrayContainer) container {
775 length := difference(ac.content, value2.content, ac.content)

Callers 1

andNotMethod · 0.95

Calls 3

differenceFunction · 0.85
getCardinalityMethod · 0.65

Tested by

no test coverage detected