Idiomatic way to generate all possible values a static array of ubyte can have

jkpl via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 2 02:11:34 PDT 2016


On Saturday, 2 April 2016 at 08:48:10 UTC, rikki cattermole wrote:
> On 02/04/2016 9:36 PM, jkpl wrote:
>> On Saturday, 2 April 2016 at 08:27:07 UTC, rikki cattermole 
>> wrote:
> Okay that is a problem then.

Yes clearly!

Maybe this, a bit better:


     foreach (b0; randomCover(iota(0,256)))
     foreach (b1; randomCover(iota(0,256)))
     ...
     foreach (b255; randomCover(iota(0,256)))
     {
         ...
     }


More information about the Digitalmars-d-learn mailing list