BitArray Slicing
Ezneh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 21 01:08:51 PST 2016
Hi, in one of my projects I have to get a slice from a BitArray.
I am trying to achieve that like this :
void foo(BitArray ba)
{
auto slice = ba[0..3]; // Assuming it has more than 4 elements
}
The problem is that I get an error :
"no operator [] overload for type BitArray".
Is there any other way to get a slice from a BitArray ?
Thanks,
Ezneh.
More information about the Digitalmars-d-learn
mailing list