compile-time opIndex

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 2 00:47:28 PST 2015


"H. S. Teoh via Digitalmars-d"  wrote in message 
news:mailman.3979.1420139660.9932.digitalmars-d at puremagic.com...

> The way I see it, this is an acceptable compromise:
>
> 1) Have .byKeyValue in druntime, which returns a struct with .key and
> .value;
>
> 2) Have .byPair in Phobos (via UFCS), which wraps around .byKeyValue and
> returns a Tuple of .key and .value.

I agree with this. 



More information about the Digitalmars-d mailing list