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

Tobias Pankrath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 2 03:45:56 PST 2015


On Thursday, 1 January 2015 at 18:58:04 UTC, Andrej Mitrovic via 
Digitalmars-d-learn wrote:
> On 1/1/15, Tobias Pankrath via Digitalmars-d-learn
> <digitalmars-d-learn at puremagic.com> wrote:
>> You could implement an OrderedMap!(Key, Value) via
>> RedBlackTree!(Tuple!(Key, Value), (a,b) => a[0] < b[0]).
>
> We could add this as an alias into Phobos or perhaps as just a
> documentation line on the website.

Will do. Going to submit some documentation PRs anyway.


More information about the Digitalmars-d-learn mailing list