This commit is contained in:
Richard Artoul 2018-11-28 15:07:56 -05:00
parent b77c8a630b
commit d3606e274d

View file

@ -398,6 +398,7 @@ func (b *Bitmap) Intersect(other *Bitmap) *Bitmap {
// Union returns the bitwise union of b and other.
func (b *Bitmap) Union(others ...*Bitmap) *Bitmap {
output := NewBitmap()
output.UnionInPlace(b)
output.UnionInPlace(others...)
return output
}