Bits withBoolAt(int index, bool value) => (value ? (this | (1 << index)) : (this & ~(1 << index))) as Bits;