[Transfer] Associative arrays in language D
1 year, 3 months ago
It is transfer of the article "Associative arrays" published on January 1, 2016. On my taste article is a little excessively superficial and does not contain a large number of details, but it can be useful that who is familiar with associative arrays in other programming languages.
In language D there is a built-in support of the associative arrays also known as a hash table.
They are similar
Map in Java or
std::unordered_map in C ++.
Declaration of associative array
To declare associative array, use the following syntax:
// Прим. перев.: value — тип значения, key — тип ключа
Read more »