how to iterate over an AA by key-value pair (tuple)?
bearophile
bearophileHUGS at lycos.com
Fri Feb 14 01:30:28 PST 2014
Timothee Cour:
> auto byKeyValue(){...}
It's probably better to call the method "byPair" that is shorter.
> If I/someone does it, will it be merged in?
Some people want those pairs to be tuples. But D lacks built-in
tuples, so you need to use typecons ones. But to use the typecons
ones you need to import half Phobos. It seems there is no good
solution.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list