(i int)
| 59 | } |
| 60 | |
| 61 | func (b *BitArray) Set(i int) { |
| 62 | if i < 0 || i >= b.n { |
| 63 | panic(fmt.Sprintf("index %v out of bounds [0:%v]", i, b.n)) |
| 64 | } |
| 65 | idx, off := ioff(i) |
| 66 | b.set(idx, off) |
| 67 | } |
| 68 | |
| 69 | func (b *BitArray) Clear(i int) { |
| 70 | if i < 0 || i >= b.n { |