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

Gary Willoughby dev at nomad.so
Fri Jan 3 09:38:15 PST 2014


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

For example if i have an associative array like this:

["one":"1", "two":"2"]

What's the easiest way to create a dynamic array that looks like 
this:

["one", "1", "two", "2"]

I know it can be done via a loop, but is there a more idiomatic 
way to achieve this?


More information about the Digitalmars-d-learn mailing list