.byKeyValue should probably return a Tuple

Yuxuan Shui via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 15 13:54:20 PST 2017


for(k, v; aa) { ... } is better than:

for(o; aa) {
     auto k = o.key, v = o.value;
     ...
}

right?

Are there any reason why .byKeyValue doesn't return a Tuple?


More information about the Digitalmars-d mailing list