Using "in" with associative arrays and then indexing them (efficiency)

Matej Nanut matejnanut at gmail.com
Tue Jan 3 09:14:24 PST 2012


On 3 January 2012 17:58, Kai Meyer <kai at unixlords.com> wrote:
> On 01/03/2012 04:07 AM, Jonathan M Davis wrote:
>> if(auto tmp = symbol in symbols)
>>     return *tmp;
>>
>> - Jonathan M Davis
>
>
> +1
>
> Very slick :)

Yup, I'm going with this one. Thanks!


More information about the Digitalmars-d-learn mailing list