I tested your code and it seems to work correctly. However, what
I find troubling is that I would never have thought of trying
this out. This is because those two properties are said to return
DELEGATES, according to this page:
http://dlang.org/hash-map.html, but it does not seem to be
correct. Now, I had a look at those properties' implementation
and found out that they, in fact, return ranges, which
contradicts documentation :(. I think it is safe to assume that
both byValue and byKey return results in the same order, given
that they use the same underlying range struct for popFront() and
empty(). Thank you for pointing this out.
- Input Range addition to associative arrays Phil Lavoie
- Re: Input Range addition to associative arrays Phil Lavoie
- Re: Input Range addition to associative arrays Andrei Alexandrescu
- Re: Input Range addition to associative array... monarch_dodra
- Re: Input Range addition to associative a... Andrei Alexandrescu
- Re: Input Range addition to associati... monarch_dodra
- Re: Input Range addition to asso... Phil Lavoie
- Re: Input Range addition to ... monarch_dodra
- Re: Input Range addition... Phil Lavoie
- Re: Input Range addition to associative arrays Ali Çehreli
- Re: Input Range addition to associative array... Phil Lavoie
- Re: Input Range addition to associative a... Ali Çehreli
- Re: Input Range addition to associative array... bearophile