Associative array and ranges

bearophile bearophileHUGS at lycos.com
Wed Feb 2 10:00:02 PST 2011


Nrgyzer:

> Is there any chance to cast/convert this array to an indexed array or
> is it possible to iterate over specific indices? I know that there is
> something like next() for the foreach-statement but when the array
> contains some thousand instances and I only want iterate over (for
> example) 5 elements I think that's the wrong way.

Show a hypothetical code example of what you desire to do, please.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list