Can the order in associative array change when keys are not midified?

Andrej Mitrovic via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 1 05:13:00 PST 2015


On 1/1/15, Idan Arye via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> If I have an associative array and I only modify it's values,
> without changing the keys, can I assume that the order won't
> change?

Associative arrays are not ordered at all.

See the first note here: http://dlang.org/hash-map.html


More information about the Digitalmars-d-learn mailing list