Simplest way to create an array from an associative array which its contains keys and values?

bearophile bearophileHUGS at lycos.com
Fri Jan 3 16:39:32 PST 2014


Ali Çehreli:

> I still like that solution. :) Even if it's not spelled out to 
> be correct in the spec, I can't imagine a hash table 
> implementation where byKey and byValue don't iterate in lock 
> step.

But in the long term ignoring what's present or missing in the 
specs is a bad idea.


> I wrote the following Expander range as an exercise.

See also:
https://d.puremagic.com/issues/show_bug.cgi?id=5489
https://d.puremagic.com/issues/show_bug.cgi?id=7957

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list