Convenience operator for setting a bit.
void operator []=(int index, bool value) => set(index, value);