BitmapOf generates a new bitmap filled with the specified integers
(dat ...uint32)
| 1945 | |
| 1946 | // BitmapOf generates a new bitmap filled with the specified integers |
| 1947 | func BitmapOf(dat ...uint32) *Bitmap { |
| 1948 | ans := NewBitmap() |
| 1949 | ans.AddMany(dat) |
| 1950 | return ans |
| 1951 | } |
| 1952 | |
| 1953 | // Flip negates the bits in the given range (i.e., [rangeStart,rangeEnd)), any integer present in this range and in the bitmap is removed, |
| 1954 | // and any integer present in the range and not in the bitmap is added. |
searching dependent graphs…