On Mon, 01 Sep 2014 08:53:45 +0000 bearophile via Digitalmars-d-learn <[email protected]> wrote:
> ketmar: > Thank you for your analysis and code. actually, it's based on Daniel Kozak's observation, so credit him instead. ;-) > But I think the "j = x.byKey.front; p = x.byValue.front;" code > looks sufficiently idiomatic, and its performance is terrible. that's why i suggest to extend AA API, adding x.firstKey and x.firstValue functions. i'll try to make the patch soon. ah, and x.getAndRemove() too, it's handy sometimes. but this will need new druntime hook, i think. ;-)
signature.asc
Description: PGP signature
