byKey and byValue: properties or methods?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jan 24 12:02:33 PST 2012


On 1/24/12 2:53 PM, Steven Schveighoffer wrote:
> On Sun, 22 Jan 2012 10:27:42 -0500, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> byKey is what, an adverb phrase, an adjective phrase? It can't name a
>>> range which is a thing.
>>
>> It has the implied verb "enumerate", "span". "Span hashtable by key".
>
> Actually, it's for each (x) in (y) by key:

I'm thinking independently of foreach, e.g.

auto iter = aa.byKey/*()*/;

This should clarify that iter spans aa by key.


Andrei



More information about the Digitalmars-d mailing list