List of lengths for each dimension.
n-dimensional bitwise slice
1D
auto bitarray = bitSlice(100); // allocates 16 bytes total assert(bitarray.shape == [100]); assert(bitarray[72] == false); bitarray[72] = true; assert(bitarray[72] == true);
2D
auto bitmatrix = bitSlice(20, 6); // allocates 16 bytes total assert(bitmatrix.shape == [20, 6]); assert(bitmatrix[3, 4] == false); bitmatrix[3, 4] = true; assert(bitmatrix[3, 4] == true);
GC-Allocates a bitwise packed n-dimensional boolean slice.