Build AA from two simple array

Andrey saasecondbox at yandex.ru
Sat Mar 23 09:25:52 UTC 2019


Hello,
I have got 2 simple arrays with the same length:
> int[] values = [1, 2, 3, 4, 5];
> char[] keys = ['a', 'b', 'c', 'd', 'e'];
>  auto result = buildAA(keys, values); // [a: 1, b: 2, c: 3, d: 
> 4, e: 5]

I want to build AA "result" using "values" and "keys". How to do 
it?


More information about the Digitalmars-d-learn mailing list