Support for unary operator ~ for BitArray.
bool[] ba = [1,0,1,0,1]; auto a = BitArray(ba); BitArray b = ~a; assert(b[0] == 0); assert(b[1] == 1); assert(b[2] == 0); assert(b[3] == 1); assert(b[4] == 0);
See Implementation
Support for unary operator ~ for BitArray.