BitmapOf generates a new bitmap filled with the specified integers
(dat ...uint64)
| 999 | |
| 1000 | // BitmapOf generates a new bitmap filled with the specified integers |
| 1001 | func BitmapOf(dat ...uint64) *Bitmap { |
| 1002 | ans := NewBitmap() |
| 1003 | ans.AddMany(dat) |
| 1004 | return ans |
| 1005 | } |
| 1006 | |
| 1007 | // Flip negates the bits in the given range (i.e., [rangeStart,rangeEnd)), any integer present in this range and in the bitmap is removed, |
| 1008 | // and any integer present in the range and not in the bitmap is added. |
searching dependent graphs…