compiler error when trying to get random key from AA

Basile B. b2.temp at gmx.com
Sat Jan 25 09:09:11 UTC 2020


On Saturday, 25 January 2020 at 08:59:23 UTC, Basile B. wrote:
> On Saturday, 25 January 2020 at 08:35:18 UTC, mark wrote:
>> [...]
>
> rndGen is a range.
>
> Use `auto word = aa.byKey.choice(rnd.front())` as index instead.
> Then `rndGen.popFront()` to advance.

no sorry, I didn't read and thought you need the index of rndGen.


More information about the Digitalmars-d-learn mailing list