Find in assoc array then iterate
Kevin Bailey
keraba at yahoo.com
Fri Oct 21 22:03:53 UTC 2022
I'm trying to do this equivalent C++:
unordered_map<string, int> map;
for (auto i = map.find(something); i != map.end(); ++i)
...do something with i...
in D, but obviously with an associative array. It seems that it's
quite
easy to iterate through the whole "map", but not start from the
middle.
Am I missing something obvious (or not so obvious) ?
More information about the Digitalmars-d-learn
mailing list